Skip to content

Fix merge/automerge a pull request from actions runner task #31173

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lunny
Copy link
Member

@lunny lunny commented May 30, 2024

Fix #31056

Some runner task token should have write permission to the repository, so it should also have the permission to create an automerge task for the pull request and the pull request created should be automerged when the conditions are satisfied.

TODO:

  • tests

@lunny lunny added type/bug backport/v1.22 This PR should be backported to Gitea 1.22 labels May 30, 2024
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 30, 2024
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/cli PR changes something on the CLI, i.e. gitea doctor or gitea admin labels May 30, 2024
@pull-request-size pull-request-size bot added size/S and removed size/M labels May 30, 2024
@yp05327 yp05327 self-requested a review May 31, 2024 00:54
@github-actions github-actions bot added modifies/translation modifies/api This PR adds API routes or modifies them modifies/templates This PR modifies the template files modifies/migrations modifies/internal modifies/dependencies modifies/frontend docs-update-needed The document needs to be updated synchronously labels Oct 2, 2024
@lunny lunny force-pushed the lunny/fix_bot_automerge branch from c45661f to 3bce19d Compare October 2, 2024 05:16
@github-actions github-actions bot removed modifies/translation modifies/api This PR adds API routes or modifies them modifies/templates This PR modifies the template files modifies/migrations modifies/internal modifies/dependencies modifies/frontend docs-update-needed The document needs to be updated synchronously labels Oct 2, 2024
@pull-request-size pull-request-size bot added size/L and removed size/S labels Oct 2, 2024
@lunny lunny removed the backport/v1.22 This PR should be backported to Gitea 1.22 label Dec 25, 2024
@lunny lunny added this to the 1.24.0 milestone Dec 25, 2024
@lunny lunny modified the milestones: 1.24.0, 1.25.0 Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/cli PR changes something on the CLI, i.e. gitea doctor or gitea admin modifies/go Pull requests that update Go code type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schedule an automerge from API (accidentally) with ${{ secrets.GITHUB_TOKEN }} will break the PR
3 participants