Bug Report
Description
askcc pr-review fails with No linked pull request found for issue #N in owner/repo even when the PR is properly linked to the issue via a closing keyword (Closes #N) in the PR body.
Steps to Reproduce
- Create a PR with
Closes #20 in the body
- Run:
askcc --cwd /path/to/repo pr-review -g https://github.com/weyucou/sops/issues/20
Expected Behavior
askcc should find the linked PR via GitHub's API and proceed with the review.
Actual Behavior
ValueError: No linked pull request found for issue #20 in weyucou/sops
Environment
Notes
The GitHub GraphQL API correctly returns the PR as a CrossReferencedEvent in the issue's timeline:
{"__typename":"CrossReferencedEvent","source":{"__typename":"PullRequest","number":31}}
It appears askcc may not be checking the timeline API for cross-references.
Bug Report
Description
askcc pr-reviewfails withNo linked pull request found for issue #N in owner/repoeven when the PR is properly linked to the issue via a closing keyword (Closes #N) in the PR body.Steps to Reproduce
Closes #20in the bodyaskcc --cwd /path/to/repo pr-review -g https://github.com/weyucou/sops/issues/20Expected Behavior
askcc should find the linked PR via GitHub's API and proceed with the review.
Actual Behavior
Environment
Closes #20in body)Notes
The GitHub GraphQL API correctly returns the PR as a
CrossReferencedEventin the issue's timeline:{"__typename":"CrossReferencedEvent","source":{"__typename":"PullRequest","number":31}}It appears askcc may not be checking the timeline API for cross-references.