Skip to content

Commit 27cc7ce

Browse files
feat: auto approve PRs from dependabot & trustify-ci-bot
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
1 parent fa024bc commit 27cc7ce

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/auto-merge-bots.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ jobs:
4343
PR_NUMBER: ${{ github.event.pull_request.number }}
4444
run: |
4545
gh pr review "$PR_NUMBER" --repo "${{ github.repository }}" --approve \
46-
--body "Auto-approved: only client/openapi/trustd.yaml changed."
46+
--body "$(cat <<'EOF'
47+
🤖 **Auto-approved**
48+
49+
Only `client/openapi/trustd.yaml` changed — no manual review required.
50+
EOF
51+
)"
4752
4853
- name: Enable auto-merge
4954
if: steps.check-files.outputs.auto_merge == 'true'
@@ -71,7 +76,12 @@ jobs:
7176
PR_NUMBER: ${{ github.event.pull_request.number }}
7277
run: |
7378
gh pr review "$PR_NUMBER" --repo "${{ github.repository }}" --approve \
74-
--body "Auto-approved: Dependabot ${{ steps.metadata.outputs.update-type }}"
79+
--body "$(cat <<EOF
80+
🤖 **Auto-approved**
81+
82+
Dependabot \`${{ steps.metadata.outputs.update-type }}\` — no manual review required.
83+
EOF
84+
)"
7585
7686
- name: Enable auto-merge (patch and minor only)
7787
if: steps.metadata.outputs.update-type != 'version-update:semver-major'

0 commit comments

Comments
 (0)