From 5cd2a485fab42c8a35d3e741b1a89b86116eb979 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Thu, 27 Jun 2024 02:40:25 +0300 Subject: [PATCH] More automation --- .github/release.yml | 7 +++++++ .github/workflows/dependency.yml | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/release.yml create mode 100644 .github/workflows/dependency.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..5521872 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,7 @@ +changelog: + exclude: + labels: + - ignore-for-release + authors: + - pre-commit-ci + - dependabot diff --git a/.github/workflows/dependency.yml b/.github/workflows/dependency.yml new file mode 100644 index 0000000..f83a62f --- /dev/null +++ b/.github/workflows/dependency.yml @@ -0,0 +1,20 @@ +name: Dependency auto-merge +on: pull_request_target + +permissions: + contents: write + pull-requests: write + +jobs: + dependency: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]' }} + steps: + - name: Enable auto-merge for Dependency PRs + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Automatically approve the PR + uses: hmarr/auto-approve-action@v4 \ No newline at end of file