about summary refs log tree commit diff
path: root/src/pr_info.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'src/pr_info.graphql')
-rw-r--r--src/pr_info.graphql18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pr_info.graphql b/src/pr_info.graphql
new file mode 100644
index 0000000..fb533a0
--- /dev/null
+++ b/src/pr_info.graphql
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: AGPL-3.0-or-later WITH GPL-3.0-linking-exception
+# SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is>
+# SPDX-FileCopyrightText: 2021 Sumner Evans <me@sumnerevans.com>
+
+query PrInfoQuery($owner: String!, $repo: String!, $number: Int!) {
+  repository(owner: $owner, name: $repo) {
+    pullRequest(number: $number) {
+      title
+      baseRefName
+      mergeCommit {
+        oid
+      }
+      merged
+      mergedAt
+      closed
+    }
+  }
+}