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

Detect PR with GitHub REST API #17

Open
Michionlion opened this issue Apr 8, 2019 · 0 comments
Open

Detect PR with GitHub REST API #17

Michionlion opened this issue Apr 8, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Michionlion
Copy link
Owner

Michionlion commented Apr 8, 2019

First query GET /repos/:owner/:repo/pulls using base="master" to list all branches merging into master. Reference merge_commit_sha and test if the running commit SHA is equal. Can also check if current commit is in the PR with GET /repos/:owner/:repo/pulls/:number/commits -- max 250 commits.

@Michionlion Michionlion added the enhancement New feature or request label Apr 8, 2019
@Michionlion Michionlion self-assigned this Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant