diff --git a/.github/workflows/giteabot.yml b/.github/workflows/giteabot.yml new file mode 100644 index 0000000000..aae31ab479 --- /dev/null +++ b/.github/workflows/giteabot.yml @@ -0,0 +1,44 @@ +name: giteabot + +on: + push: + branches: + - main + pull_request_target: + types: + - opened + - synchronize + - labeled + - unlabeled + - closed + - review_requested + - review_request_removed + pull_request_review: + types: + - submitted + - edited + - dismissed + schedule: + - cron: "15 3 * * *" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ format('{0}-{1}', github.workflow, (github.event_name == 'pull_request_target' || github.event_name == 'pull_request_review') && format('pr-{0}', github.event.pull_request.number) || 'maintenance') }} + cancel-in-progress: false + +jobs: + giteabot: + if: github.repository == 'go-gitea/gitea' + name: Run Giteabot (${{ github.event_name }}) + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Run Giteabot + # pull_request_target runs with a write token, so keep this pinned and do not check out PR HEAD here. + uses: go-gitea/giteabot@761f9199f71c68ce2c76decf3dcf7ee76ca664ed # v1 branch @ 2026-04-25 + with: + github_token: ${{ secrets.GITEABOT_TOKEN }} + gitea_fork: giteabot/gitea diff --git a/docs/community-governance.md b/docs/community-governance.md index dbf2481329..e37e9def64 100644 --- a/docs/community-governance.md +++ b/docs/community-governance.md @@ -48,7 +48,7 @@ If a PR has `lgtm/done`, no open discussions, and no merge conflicts, any mainta -Gitea uses its own tool, , to automate parts of the review process. The backporter: +Gitea uses its own tool, , to automate parts of the review process. The backporter: - Creates a backport PR when needed after the initial PR merges. - Removes the PR from the merge queue after it merges.