-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Make auto-generated PRs have 'mdn-bot' as author and commi…
…tter
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,25 +67,31 @@ jobs: | |
- name: Create PR with only fixable issues | ||
if: success() | ||
uses: peter-evans/create-pull-request@v5 | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: "${{ matrix.lang }}: auto-fix Markdownlint issues" | ||
branch: markdownlint-auto-cleanup-${{ matrix.lang }} | ||
title: "Markdownlint auto-cleanup for ${{ matrix.lang }}" | ||
author: mdn-bot <[email protected]> | ||
committer: mdn-bot <[email protected]> | ||
body: | | ||
All issues auto-fixed | ||
labels: | | ||
automated pr | ||
token: ${{ secrets.AUTOMERGE_TOKEN }} | ||
|
||
- name: Create PR with notice on unfixed issues | ||
if: failure() | ||
uses: peter-evans/create-pull-request@v5 | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: "${{ matrix.lang }}: auto-fix Markdownlint issues" | ||
branch: markdownlint-auto-cleanup-${{ matrix.lang }} | ||
title: "Markdownlint auto-cleanup for ${{ matrix.lang }}" | ||
author: mdn-bot <[email protected]> | ||
committer: mdn-bot <[email protected]> | ||
body: | | ||
Auto-fix was run, but additional issues found. | ||
Please review the run log: https://github.com/mdn/translated-content/actions/runs/${{ github.run_id }} | ||
labels: | | ||
automated pr | ||
token: ${{ secrets.AUTOMERGE_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,11 +60,14 @@ jobs: | |
run: yarn content sync-translated-content ${{ matrix.lang }} | ||
|
||
- name: Create PR with sync for ${{ matrix.lang }} | ||
uses: peter-evans/create-pull-request@v5 | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: "${{ matrix.lang }}: sync translated content" | ||
branch: content-sync-${{ matrix.lang }} | ||
title: "[${{ matrix.lang }}] sync translated content" | ||
author: mdn-bot <[email protected]> | ||
committer: mdn-bot <[email protected]> | ||
body: Yari generated sync | ||
labels: | | ||
automated pr | ||
token: ${{ secrets.AUTOMERGE_TOKEN }} |