Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query fixed PRs from Beta issue detail #64

Closed
hustcer opened this issue Oct 23, 2024 · 2 comments · Fixed by #68, #69, #71, #72 or #73
Closed

Query fixed PRs from Beta issue detail #64

hustcer opened this issue Oct 23, 2024 · 2 comments · Fixed by #68, #69, #71, #72 or #73
Milestone

Comments

@hustcer
Copy link
Owner

hustcer commented Oct 23, 2024

http get https://github.com/web-infra-dev/rsbuild/issues/3700
    | query web --query 'div[data-testid="issue-metadata-fixed"] a' 
    | to text

http get https://github.com/nushell/nushell/issues/13966 | query web --query 'span[data-issue-and-pr-hovercards-enabled]'
@hustcer
Copy link
Owner Author

hustcer commented Oct 24, 2024

{
  repository(owner: "web-infra-dev", name: "rsbuild") {
    issueOrPullRequest(number: 3780) {
      __typename
      ... on Closable {
        closed
        closedAt
      }
      ... on Issue {
        timeline(last: 100) {
          edges {
            node {
              ... on ClosedEvent {
                stateReason
                closer {
                  __typename
                  ... on PullRequest {
                    repository {
                      nameWithOwner
                    }
                    title
                    number
                    mergeCommit {
                      abbreviatedOid
                    }
                    milestone {
                      title
                    }
                    author {
                      login
                    }
                  }
                }
                actor {
                  login
                }
              }
            }
          }
        }
      }
    }
  }
}

@hustcer
Copy link
Owner Author

hustcer commented Oct 24, 2024

https://docs.github.com/en/graphql/overview/explorer

{
  repository(owner: "nushell", name: "nushell") {
    issueOrPullRequest(number: 13991) {
      __typename
      ... on Closable {
        closed
        closedAt
      }
      ... on Issue {
        timeline(last: 100) {
          edges {
            node {
              ... on ClosedEvent {
                stateReason
                closer {
                  __typename
                  ... on PullRequest {
                    repository {
                      nameWithOwner
                    }
                    title
                    number
                    mergeCommit {
                      abbreviatedOid
                    }
                    milestone {
                      title
                    }
                    author {
                      login
                    }
                  }
                }
                actor {
                  login
                }
              }
            }
          }
        }
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment