Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from mdn:main #76

Merged
merged 8 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ name: auto-merge
on:
pull_request_target:

permissions: {}

jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v2
- uses: ahmadnassri/action-dependabot-auto-merge@45fc124d949b19b6b8bf6645b6c9d55f4f9ac61a # v2.6.6
with:
github-token: ${{ secrets.AUTOMERGE_TOKEN }}
command: "squash and merge"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/markdown-lint-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

permissions: {}

jobs:
fix:
if: github.repository == 'mdn/translated-content'
Expand Down Expand Up @@ -61,7 +63,7 @@ jobs:

- name: Create PR with only fixable issues
if: success()
uses: peter-evans/create-pull-request@v7
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
with:
commit-message: "${{ matrix.lang }}: auto-fix Markdownlint issues"
branch: markdownlint-auto-cleanup-${{ matrix.lang }}
Expand All @@ -76,7 +78,7 @@ jobs:

- name: Create PR with notice on unfixed issues
if: failure()
uses: peter-evans/create-pull-request@v7
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
with:
commit-message: "${{ matrix.lang }}: auto-fix Markdownlint issues"
branch: markdownlint-auto-cleanup-${{ matrix.lang }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
- .github/workflows/markdown-lint.yml
- .github/workflows/markdownlint-problem-matcher.json

permissions: {}

jobs:
docs:
# do not run on forks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check-lint_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:

- name: Setup reviewdog
if: env.FILES_MODIFIED == 'true' || env.MD_LINT_FAILED == 'true'
uses: reviewdog/action-setup@v1
uses: reviewdog/action-setup@3f401fe1d58fe77e10d665ab713057375e39b887 # v1.3.0
with:
reviewdog_version: latest

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-check_json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- "**/*.jsonc"
- .github/workflows/pr-check_json.yml

permissions: {}

jobs:
docs:
# do not run on PRs in forks
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-check_redirects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- main

permissions: {}

jobs:
check_redirects:
# do not run on PRs in forks
Expand All @@ -17,7 +19,7 @@ jobs:
# This is a "required" workflow so path filtering can not be used:
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
# We have to rely on a custom filtering mechanism to run the checks only if required files are modified.
- uses: dorny/paths-filter@v3
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
name: See if any file needs checking
id: filter
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-check_yml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- "**/*.yml"
- .github/workflows/pr-check_yml.yml

permissions: {}

jobs:
docs:
# do not run on PRs in forks
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: "Pull Request Labeler"
on:
- pull_request_target

permissions:
contents: read
pull-requests: write

jobs:
triage:
# do not run on PRs in forks
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-rebase-needed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
pull_request_target:
types: [synchronize]

permissions:
pull-requests: write

jobs:
label-rebase-needed:
# do not run on PRs in forks
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pr-review-companion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ on:
types:
- completed

permissions:
# Required to download artifact.
actions: read
# Required to post comment.
pull-requests: write

jobs:
review:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -61,7 +67,7 @@ jobs:

- name: Install Python poetry
if: env.HAS_ARTIFACT
uses: snok/[email protected]
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/sync-translated-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
# * is a special character in YAML so you have to quote this string
- cron: "0 1 * * *"

permissions:
contents: read

jobs:
build:
if: github.repository == 'mdn/translated-content'
Expand Down Expand Up @@ -90,7 +93,7 @@ jobs:
} >> "$GITHUB_ENV"

- name: Create PR with sync for ${{ matrix.lang }}
uses: peter-evans/create-pull-request@v7
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
with:
commit-message: "${{ matrix.lang }}: sync translated content"
branch: content-sync-${{ matrix.lang }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/system-file-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- package.json
- yarn.lock

permissions: {}

jobs:
block:
# This make sure it only runs on our origin repo
Expand Down
4 changes: 1 addition & 3 deletions files/zh-cn/web/api/element/getelementsbyclassname/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ document.getElementById("main").getElementsByClassName("test");
var testElements = document.getElementsByClassName("test");
var testDivs = Array.prototype.filter.call(
testElements,
function (testElement) {
return testElement.nodeName === "div";
},
(testElement) => testElement.nodeName === "DIV",
);
```

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-moz-float-edge/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-moz-float-edge"
title: -moz-float-edge
slug: Web/CSS/-moz-float-edge
l10n:
sourceCommit: 4767ebffd07b627275ae9cac6863b153e3e6746d
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-moz-force-broken-image-icon/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-moz-force-broken-image-icon"
title: -moz-force-broken-image-icon
slug: Web/CSS/-moz-force-broken-image-icon
l10n:
sourceCommit: db9ccd6c2746b3f34b0951d8e59ea1c581312d9d
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-moz-image-rect/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-moz-image-rect"
title: -moz-image-rect
slug: Web/CSS/-moz-image-rect
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-moz-user-input/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-moz-user-input"
title: -moz-user-input
slug: Web/CSS/-moz-user-input
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-webkit-border-before/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-border-before"
title: -webkit-border-before
slug: Web/CSS/-webkit-border-before
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-webkit-box-reflect/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-box-reflect"
title: -webkit-box-reflect
slug: Web/CSS/-webkit-box-reflect
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-webkit-line-clamp/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-line-clamp"
title: -webkit-line-clamp
slug: Web/CSS/-webkit-line-clamp
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-webkit-tap-highlight-color/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-tap-highlight-color"
title: -webkit-tap-highlight-color
slug: Web/CSS/-webkit-tap-highlight-color
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-webkit-text-fill-color/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-text-fill-color"
title: -webkit-text-fill-color
slug: Web/CSS/-webkit-text-fill-color
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-webkit-text-stroke-color/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-text-stroke-color"
title: -webkit-text-stroke-color
slug: Web/CSS/-webkit-text-stroke-color
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-webkit-text-stroke-width/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-text-stroke-width"
title: -webkit-text-stroke-width
slug: Web/CSS/-webkit-text-stroke-width
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-webkit-text-stroke/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-text-stroke"
title: -webkit-text-stroke
slug: Web/CSS/-webkit-text-stroke
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/-webkit-touch-callout/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-touch-callout"
title: -webkit-touch-callout
slug: Web/CSS/-webkit-touch-callout
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "-webkit-device-pixel-ratio"
title: -webkit-device-pixel-ratio
slug: Web/CSS/@media/-webkit-device-pixel-ratio
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_-moz-broken/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":-moz-broken"
title: :-moz-broken
slug: Web/CSS/:-moz-broken
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_-moz-drag-over/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":-moz-drag-over"
title: :-moz-drag-over
slug: Web/CSS/:-moz-drag-over
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_-moz-first-node/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":-moz-first-node"
title: :-moz-first-node
slug: Web/CSS/:-moz-first-node
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_-moz-only-whitespace/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":blank"
title: :blank
slug: Web/CSS/:-moz-only-whitespace
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_-moz-window-inactive/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":-moz-window-inactive"
title: :-moz-window-inactive
slug: Web/CSS/:-moz-window-inactive
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_active/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":active"
title: :active
slug: Web/CSS/:active
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_any-link/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":any-link"
title: :any-link
slug: Web/CSS/:any-link
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_autofill/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":autofill"
title: :autofill
slug: Web/CSS/:autofill
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_blank/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":blank"
title: :blank
slug: Web/CSS/:blank
l10n:
sourceCommit: 5fea7c9593f5e4b4ef13ec65064acf1eabf01e4e
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_checked/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":checked"
title: :checked
slug: Web/CSS/:checked
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_default/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":default"
title: :default
slug: Web/CSS/:default
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_defined/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":defined"
title: :defined
slug: Web/CSS/:defined
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_dir/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":dir()"
title: :dir()
slug: Web/CSS/:dir
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_disabled/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":disabled"
title: :disabled
slug: Web/CSS/:disabled
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_empty/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":empty"
title: :empty
slug: Web/CSS/:empty
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_enabled/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":enabled"
title: :enabled
slug: Web/CSS/:enabled
---

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/_colon_first-child/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ":first-child"
title: :first-child
slug: Web/CSS/:first-child
---

Expand Down
Loading