Githawk: References in other issues

Created on 5 Jul 2017  ·  3Comments  ·  Source: GitHawkApp/GitHawk

Should open the issue/PR natively if possible. I should introduce a router system that takes in data and spits out VCs...

🆕 feature request

Most helpful comment

Working

All 3 comments

Working

How did you implement this? I am not seeing this

Looks like the GQL API is broken. Will file an issue.

For example, using the explorer:

Query:

query IssueOrPullRequest($owner: String!, $repo: String!, $number: Int!, $page_size: Int!) {
  repository(owner: $owner, name: $repo) {
    name
    issueOrPullRequest(number: $number) {
      ... on Issue {
        timeline(first:$page_size) {
          nodes {
            __typename
            ... on ReferencedEvent {
              createdAt
              ...nodeFields
              refCommit: commit {oid}
              actor {login}
              commitRepository {
                ...referencedRepositoryFields
              }
              subject {
                ... on Issue {
                  title
                  number
                  closed
                }
                ... on PullRequest {
                  title
                  number
                  closed
                  merged
                }
              }
            }
          }
        }
      }
    }
  }
}

fragment nodeFields on Node {
  id
}

fragment referencedRepositoryFields on RepositoryInfo {
  name
  owner {
    login
  }
}

Returns result:

{
  "data": {
    "repository": {
      "name": "IGListKit",
      "issueOrPullRequest": {
        "timeline": {
          "nodes": [
            {
              "__typename": "LabeledEvent"
            },
            {
              "__typename": "MilestonedEvent"
            },
            {
              "__typename": "IssueComment"
            }
          ]
        }
      }
    }
  }
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

BasThomas picture BasThomas  ·  3Comments

rizwankce picture rizwankce  ·  3Comments

BasThomas picture BasThomas  ·  3Comments

BasThomas picture BasThomas  ·  3Comments

BasThomas picture BasThomas  ·  3Comments