From ec008eafffb207a77f82723a8890e330af3fb422 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 12:12:36 +0000 Subject: [PATCH] ci: sync with template repository --- .github/auto-label.yaml | 11 +++++++++++ .github/blunderbuss.yml | 10 ++++++++++ .github/workflows/merge.yaml | 11 +++++++---- 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 .github/auto-label.yaml create mode 100644 .github/blunderbuss.yml 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 }}