Skip to content

Commit

Permalink
chore(ci): Make auto-generated PRs have 'mdn-bot' as author and commi…
Browse files Browse the repository at this point in the history
…tter
  • Loading branch information
bsmth committed Feb 9, 2024
1 parent dd01b36 commit 8cc159e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/markdown-lint-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
5 changes: 4 additions & 1 deletion .github/workflows/sync-translated-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 8cc159e

Please sign in to comment.