about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.editorconfig5
-rw-r--r--src/commit_pr.graphql20
2 files changed, 15 insertions, 10 deletions
diff --git a/.editorconfig b/.editorconfig
index df38fb8..23bf486 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -46,6 +46,11 @@ end_of_line = lf
 insert_final_newline = true
 charset = utf-8
 
+[*.graphql]
+indent_style = spaces
+indent_size = 2
+trim_trailing_whitespace = true
+
 [*.rs]
 indent_style = spaces
 indent_size = 4
diff --git a/src/commit_pr.graphql b/src/commit_pr.graphql
index 539f28f..b2b1571 100644
--- a/src/commit_pr.graphql
+++ b/src/commit_pr.graphql
@@ -44,16 +44,16 @@ query CommitPRQuery($owner: String!, $repo: String!, $oid: GitObjectID) {
     object(oid: $oid) {
       __typename
       ... on Commit {
-	associatedPullRequests(first: 1) {
-	  nodes {
-	    baseRepository {
-	      owner {
-		__typename
-		login
-	      }
-	    }
-	  }
-	}
+        associatedPullRequests(first: 1) {
+          nodes {
+            baseRepository {
+              owner {
+                __typename
+                login
+              }
+            }
+          }
+        }
       }
     }
   }