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
3,105 changed files
with
25,627 additions
and
13,507 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Create Markdownlint auto-fix PR | ||
name: Create content auto-fix PR | ||
|
||
on: | ||
schedule: | ||
|
@@ -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 issues" | ||
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues" | ||
branch: markdownlint-auto-cleanup | ||
title: "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 issues" | ||
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues" | ||
branch: markdownlint-auto-cleanup | ||
title: "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 |
---|---|---|
|
@@ -22,6 +22,7 @@ jobs: | |
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: "mdn-content/.nvmrc" | ||
cache: yarn | ||
|
||
- name: Checkout webref | ||
uses: actions/checkout@v4 | ||
|
@@ -35,13 +36,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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,48 @@ | ||
name: "Pull request labeler" | ||
name: PR labeler | ||
|
||
on: | ||
- pull_request_target | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
contents: read | ||
|
||
jobs: | ||
triage: | ||
# Docs: https://github.com/actions/labeler | ||
label-by-path: | ||
# do not run on forks | ||
if: github.repository == 'mdn/content' | ||
name: Label by path | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v4 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
# Docs: https://github.com/CodelyTV/pr-size-labeler | ||
label-by-size: | ||
# do not run on forks | ||
if: github.repository == 'mdn/content' | ||
needs: label-by-path | ||
name: Label by size | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: codelytv/pr-size-labeler@v1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
github_api_url: "https://api.github.com" | ||
xs_label: "size/xs" | ||
xs_max_size: "5" | ||
s_label: "size/s" | ||
s_max_size: "50" | ||
m_label: "size/m" | ||
m_max_size: "500" | ||
l_label: "size/l" | ||
l_max_size: "1000" | ||
xl_label: "size/xl" | ||
fail_if_xl: "false" | ||
message_if_xl: "" | ||
files_to_ignore: | | ||
"files/en-us/_redirects.txt" | ||
"files/en-us/_wikihistory.json" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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,9 @@ | ||
#!/usr/bin/env sh | ||
|
||
# This script stores the 'main' branch's HEAD commit hash in .husky/_/history | ||
# The stored commit hash is used by the post-merge script .husky/post-merge | ||
|
||
BRANCH="$(git rev-parse --abbrev-ref HEAD)" | ||
if [ "$BRANCH" = "main" -a -d "./.husky/_" ]; then | ||
echo $(git rev-parse HEAD) > ./.husky/_/history | ||
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"config": { | ||
"extends": "./.markdownlint.jsonc" | ||
"extends": "./.markdownlint.jsonc", | ||
}, | ||
"customRules": ["markdownlint-rule-search-replace"], | ||
"ignores": ["node_modules", ".git", ".github", "tests"] | ||
"ignores": ["node_modules", ".git", ".github", "tests"], | ||
} |
Oops, something went wrong.