diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml new file mode 100644 index 0000000..978c4d9 --- /dev/null +++ b/.github/auto-label.yaml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/googleapis/repo-automation-bots/main/packages/auto-label/src/config-schema.json + +language: + pullrequest: true + labelprefix: "lang: " + +staleness: + pullrequest: true + +requestsize: + enabled: true diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml new file mode 100644 index 0000000..3f1e1a2 --- /dev/null +++ b/.github/blunderbuss.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/googleapis/repo-automation-bots/main/packages/blunderbuss/src/config-schema.json + +assign_issues: + - liblaf + +assign_prs: + - liblaf + +ignore_authors: + - dependabot diff --git a/.github/workflows/merge.yaml b/.github/workflows/merge.yaml index 107a42a..1516057 100644 --- a/.github/workflows/merge.yaml +++ b/.github/workflows/merge.yaml @@ -3,10 +3,6 @@ name: Merge on: pull_request: -permissions: - contents: write - pull-requests: write - concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -20,6 +16,8 @@ jobs: merge: name: Merge + permissions: + pull-requests: write if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' runs-on: ubuntu-latest @@ -28,3 +26,8 @@ jobs: run: gh pr merge ${{ github.event.pull_request.html_url }} --auto --squash env: GH_TOKEN: ${{ github.token }} + - name: Enable Merge-on-green + run: | + gh pr edit ${{ github.event.pull_request.html_url }} --add-label "automerge: exact" + env: + GH_TOKEN: ${{ github.token }}