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

Add API to get merged PR of a commit #29243

Merged
merged 16 commits into from
Feb 24, 2024
Merged

Add API to get merged PR of a commit #29243

merged 16 commits into from
Feb 24, 2024

Conversation

qwerty287
Copy link
Contributor

Adds a new API /repos/{owner}/{repo}/commits/{sha}/pull that allows you to get the merged PR associated to a commit.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 18, 2024
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 18, 2024
@github-actions github-actions bot added the modifies/api This PR adds API routes or modifies them label Feb 18, 2024
@6543 6543 added this to the 1.22.0 milestone Feb 20, 2024
models/issues/pull.go Outdated Show resolved Hide resolved
@qwerty287 qwerty287 requested a review from 6543 February 22, 2024 19:26
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Feb 22, 2024
@6543 6543 requested a review from lunny February 22, 2024 20:38
@qwerty287
Copy link
Contributor Author

@6543 Thanks for adding the test ❤️

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 24, 2024
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Feb 24, 2024
@lunny lunny enabled auto-merge (squash) February 24, 2024 07:45
@lunny lunny merged commit 0a426cc into go-gitea:main Feb 24, 2024
26 checks passed
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Feb 24, 2024
6543 added a commit to 6543-forks/gitea that referenced this pull request Feb 26, 2024
Adds a new API `/repos/{owner}/{repo}/commits/{sha}/pull` that allows
you to get the merged PR associated to a commit.

---------

Co-authored-by: 6543 <6543@obermui.de>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants