From bee5b653ec5303ec9dce7f01dabd49e100674b7a Mon Sep 17 00:00:00 2001 From: Alex Fernandez Luces Date: Tue, 14 Oct 2025 09:45:07 +0200 Subject: [PATCH 1/2] maint: Add Dependabot automerge action --- .github/workflows/cicd.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 981e24c..09d8089 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -197,3 +197,24 @@ jobs: bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} + automerge-prs: + name: Automerge PRs (dependabot and pre-commit.ci only) + runs-on: ubuntu-latest + needs: [build-library] + if: github.event_name == 'pull_request' + permissions: + contents: write + pull-requests: write + steps: + - name: Automerge PRs + uses: ansys/actions/hk-automerge-prs@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4 + with: + approver: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} + approver-token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} + + - name: If pre-commit PR, add assignee + if: startsWith(github.head_ref, 'pre-commit-ci-update-config') + run: gh pr edit --add-assignee pyansys-ci-bot "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} From 7da60fe14f8022b00f5e1ab060bc36b775e27c1c Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 14 Oct 2025 07:53:56 +0000 Subject: [PATCH 2/2] chore: adding changelog file 61.miscellaneous.md [dependabot-skip] --- doc/source/changelog/61.miscellaneous.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/source/changelog/61.miscellaneous.md diff --git a/doc/source/changelog/61.miscellaneous.md b/doc/source/changelog/61.miscellaneous.md new file mode 100644 index 0000000..ab24e52 --- /dev/null +++ b/doc/source/changelog/61.miscellaneous.md @@ -0,0 +1 @@ +Maint: Add Dependabot automerge action