diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index edbeb50b42..5bf39beeee 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -20,7 +20,7 @@ package.json @github/docs-engineering /.github/workflows/crowdin.yml @github/docs-localization /crowdin*.yml @github/docs-engineering @github/docs-localization /translations/ @github/docs-engineering @github/docs-localization @github-actions -/translations/log/ @github/docs-localization +/translations/log/ @github/docs-localization @github-actions # Site Policy /content/github/site-policy/ @github/site-policy-admins diff --git a/.github/workflows/create-translation-batch-pr.yml b/.github/workflows/create-translation-batch-pr.yml index 34e3905a4f..c7e929d9af 100644 --- a/.github/workflows/create-translation-batch-pr.yml +++ b/.github/workflows/create-translation-batch-pr.yml @@ -172,6 +172,18 @@ jobs: --body-file /tmp/pr-body.txt || git push origin :${{ steps.set-branch.outputs.BRANCH_NAME }} \ --label "translation-batch" + - name: Approve PR + if: github.ref_name == 'main' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh pr review --approve || echo "Nothing to approve" + + - name: Set auto-merge + if: github.ref_name == 'main' + env: + GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }} + run: gh pr merge ${{ steps.set-branch.outputs.BRANCH_NAME }} --auto --squash || echo "Nothing to merge" + # When the maximum execution time is reached for this job, Actions cancels the workflow run. # This emits a notification for the first responder to triage. - name: Send Slack notification if workflow is cancelled