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.
Merge branch 'main' into fix-globals-part-1
- Loading branch information
Showing
1,496 changed files
with
12,252 additions
and
6,208 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
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 |
---|---|---|
|
@@ -34,25 +34,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: "chore: auto-fix Markdownlint, Prettier, and front-matter issues" | ||
branch: markdownlint-auto-cleanup | ||
title: "fix: auto-cleanup by bot" | ||
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: "chore: auto-fix Markdownlint, Prettier, and front-matter issues" | ||
branch: markdownlint-auto-cleanup | ||
title: "fix: auto-cleanup by bot" | ||
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/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 |
---|---|---|
|
@@ -35,13 +35,16 @@ jobs: | |
run: node scripts/update-interface-data.js ../webref/ | ||
|
||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v5 | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
path: mdn-content | ||
token: ${{ secrets.AUTOMERGE_TOKEN }} | ||
title: Update InterfaceData based on WebRef | ||
author: mdn-bot <[email protected]> | ||
committer: mdn-bot <[email protected]> | ||
commit-message: Update InterfaceData based on WebRef | ||
body: Automated changes generated by scripts/update-interface-data via interface-updater github workflow | ||
labels: | | ||
automated pr | ||
delete-branch: true | ||
branch: interfacedata-update |
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,30 @@ | ||
name: Check URL issues | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "files/**/*.md" | ||
|
||
jobs: | ||
check_url_issues: | ||
#if: github.repository == 'mdn/content' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: yarn | ||
|
||
- name: Check URL deletions and broken fragments | ||
run: | | ||
echo "::add-matcher::.github/workflows/url-issues-problem-matcher.json" | ||
git fetch origin main | ||
node scripts/log-url-issues.js --workflow |
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,18 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "log-url-issues", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(ERROR|WARN|INFO):(.+):(\\d+):(\\d+):(.+)$", | ||
"severity": 1, | ||
"file": 2, | ||
"line": 3, | ||
"column": 4, | ||
"message": 5 | ||
} | ||
] | ||
} | ||
] | ||
} |
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,16 @@ | ||
#!/usr/bin/env sh | ||
|
||
BRANCH="$(git rev-parse --abbrev-ref HEAD)" | ||
if [ "$BRANCH" != "main" ]; then | ||
exit 0 | ||
fi | ||
|
||
if [ -f ".husky/_/history" ]; then | ||
lastHash=$(cat ./.husky/_/history) | ||
isUpdated=$(git diff $lastHash HEAD -- ./package.json) | ||
if [ "$isUpdated" != "" ]; then | ||
echo "\n⚠🔥 'package.json' has changed. Please run 'yarn install'! 🔥" | ||
fi | ||
else | ||
yarn install | ||
fi |
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 |
---|---|---|
|
@@ -68,5 +68,6 @@ | |
"path": "./project-words.txt", | ||
"addWords": true | ||
} | ||
] | ||
], | ||
"enableFiletypes": ["xml"] | ||
} |
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
Oops, something went wrong.