From 8cc159e90b48bd535c52bfe9f2b23d6f3d6f250f Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Fri, 9 Feb 2024 16:53:16 +0100 Subject: [PATCH] chore(ci): Make auto-generated PRs have 'mdn-bot' as author and committer --- .github/workflows/markdown-lint-fix.yml | 10 ++++++++-- .github/workflows/sync-translated-content.yml | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/markdown-lint-fix.yml b/.github/workflows/markdown-lint-fix.yml index b6fdc5300588dc..d3608f8dd13ead 100644 --- a/.github/workflows/markdown-lint-fix.yml +++ b/.github/workflows/markdown-lint-fix.yml @@ -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 <108879845+mdn-bot@users.noreply.github.com> + committer: mdn-bot <108879845+mdn-bot@users.noreply.github.com> 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 <108879845+mdn-bot@users.noreply.github.com> + committer: mdn-bot <108879845+mdn-bot@users.noreply.github.com> 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 }} diff --git a/.github/workflows/sync-translated-content.yml b/.github/workflows/sync-translated-content.yml index d12f4af5ca66d2..86665e89ad3bf9 100644 --- a/.github/workflows/sync-translated-content.yml +++ b/.github/workflows/sync-translated-content.yml @@ -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 <108879845+mdn-bot@users.noreply.github.com> + committer: mdn-bot <108879845+mdn-bot@users.noreply.github.com> body: Yari generated sync + labels: | + automated pr token: ${{ secrets.AUTOMERGE_TOKEN }}