Skip to content

Commit 851ea93

Browse files
authored
chore(ci): Make auto-generated PRs have 'mdn-bot' as author and committer (mdn#18207)
1 parent 998818f commit 851ea93

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/markdown-lint-fix.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,31 @@ jobs:
6767
6868
- name: Create PR with only fixable issues
6969
if: success()
70-
uses: peter-evans/create-pull-request@v5
70+
uses: peter-evans/create-pull-request@v6
7171
with:
7272
commit-message: "${{ matrix.lang }}: auto-fix Markdownlint issues"
7373
branch: markdownlint-auto-cleanup-${{ matrix.lang }}
7474
title: "Markdownlint auto-cleanup for ${{ matrix.lang }}"
7575
author: mdn-bot <[email protected]>
76+
committer: mdn-bot <[email protected]>
7677
body: |
7778
All issues auto-fixed
79+
labels: |
80+
automated pr
7881
token: ${{ secrets.AUTOMERGE_TOKEN }}
7982

8083
- name: Create PR with notice on unfixed issues
8184
if: failure()
82-
uses: peter-evans/create-pull-request@v5
85+
uses: peter-evans/create-pull-request@v6
8386
with:
8487
commit-message: "${{ matrix.lang }}: auto-fix Markdownlint issues"
8588
branch: markdownlint-auto-cleanup-${{ matrix.lang }}
8689
title: "Markdownlint auto-cleanup for ${{ matrix.lang }}"
8790
author: mdn-bot <[email protected]>
91+
committer: mdn-bot <[email protected]>
8892
body: |
8993
Auto-fix was run, but additional issues found.
9094
Please review the run log: https://github.com/mdn/translated-content/actions/runs/${{ github.run_id }}
95+
labels: |
96+
automated pr
9197
token: ${{ secrets.AUTOMERGE_TOKEN }}

.github/workflows/sync-translated-content.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@ jobs:
6060
run: yarn content sync-translated-content ${{ matrix.lang }}
6161

6262
- name: Create PR with sync for ${{ matrix.lang }}
63-
uses: peter-evans/create-pull-request@v5
63+
uses: peter-evans/create-pull-request@v6
6464
with:
6565
commit-message: "${{ matrix.lang }}: sync translated content"
6666
branch: content-sync-${{ matrix.lang }}
6767
title: "[${{ matrix.lang }}] sync translated content"
6868
author: mdn-bot <[email protected]>
69+
committer: mdn-bot <[email protected]>
6970
body: Yari generated sync
71+
labels: |
72+
automated pr
7073
token: ${{ secrets.AUTOMERGE_TOKEN }}

0 commit comments

Comments
 (0)