Skip to content

Commit

Permalink
Merge pull request #435 from bobvanderlinden/pr-fix-associated-pull-r…
Browse files Browse the repository at this point in the history
…equest-query

fix: use query name and arguments in graphql query
  • Loading branch information
probot-auto-merge[bot] authored Oct 27, 2019
2 parents 676259e + 7590bd7 commit ac65983
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 ac65983

Please sign in to comment.