forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11,496 changed files
with
179,076 additions
and
104,417 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Create content auto-fix PR | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
fix: | ||
if: github.repository == 'mdn/content' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: yarn | ||
|
||
- name: Install all yarn packages | ||
run: yarn --frozen-lockfile | ||
env: | ||
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
HUSKY: 0 | ||
|
||
- name: Lint markdown files | ||
run: | | ||
yarn content fix-flaws | ||
yarn fix:md | ||
yarn fix:fm | ||
- name: Create PR with only fixable issues | ||
if: success() | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues" | ||
branch: markdownlint-auto-cleanup | ||
title: "fix: auto-cleanup by bot" | ||
author: mdn-bot <[email protected]> | ||
body: | | ||
All issues auto-fixed | ||
token: ${{ secrets.AUTOMERGE_TOKEN }} | ||
|
||
- name: Create PR with notice on unfixed issues | ||
if: failure() | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues" | ||
branch: markdownlint-auto-cleanup | ||
title: "fix: auto-cleanup by bot" | ||
author: mdn-bot <[email protected]> | ||
body: | | ||
Auto-fix was run, but additional issues found. | ||
Please review the run log: https://github.com/mdn/content/actions/runs/${{ github.run_id }} | ||
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.