Skip to content

Commit

Permalink
fix: add query arguments to AssociatedPullRequest query
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvanderlinden committed Oct 27, 2019
1 parent 85db951 commit 2b81acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export = (app: Application) => {

async function getAssociatedPullRequests (github: GitHubAPI, { owner, repo, branchName }: { owner: String, repo: string, branchName: string }): Promise<{ owner: string, repo: string, number: number }[]> {
const result = await rawGraphQLQuery(github, `
query {
query($owner: String!, $repo: String!, $refQualifiedName: String!) {
repository(owner: $owner, name: $repo) {
ref(qualifiedName: $refQualifiedName) {
associatedPullRequests(first: 10) {
Expand Down

0 comments on commit 2b81acb

Please sign in to comment.