Skip to content

Commit 441af75

Browse files
merging all conflicts
2 parents 9a1b156 + b011783 commit 441af75

121 files changed

Lines changed: 39971 additions & 616 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/skills/docs-writer-blog/SKILL.md‎

Lines changed: 4 additions & 4 deletions

‎.claude/skills/react-expert/SKILL.md‎

Lines changed: 8 additions & 8 deletions

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
contact_links:
22
- name: 📃 Bugs in React
3-
url: https://github.com/facebook/react/issues/new/choose
3+
url: https://github.com/react/react/issues/new/choose
44
about: This issue tracker is not for bugs in React. Please file React issues here.
55
- name: 🤔 Questions and Help
66
url: https://reactjs.org/community/support.html
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Discord Notify
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, ready_for_review]
6+
7+
permissions: {}
8+
9+
jobs:
10+
check_maintainer:
11+
uses: react/react/.github/workflows/shared_check_maintainer.yml@main
12+
permissions:
13+
# Used by check_maintainer
14+
contents: read
15+
with:
16+
actor: ${{ github.event.pull_request.user.login }}
17+
18+
notify:
19+
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
20+
needs: check_maintainer
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Discord Webhook Action
24+
uses: tsickert/discord-webhook@v6.0.0
25+
with:
26+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
27+
embed-author-name: ${{ github.event.pull_request.user.login }}
28+
embed-author-url: ${{ github.event.pull_request.user.html_url }}
29+
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
30+
embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
31+
embed-description: ${{ github.event.pull_request.body }}
32+
embed-url: ${{ github.event.pull_request.html_url }}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Label Core Team PRs
2+
3+
on:
4+
pull_request_target:
5+
6+
permissions: {}
7+
8+
env:
9+
TZ: /usr/share/zoneinfo/America/Los_Angeles
10+
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
11+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
12+
13+
jobs:
14+
check_maintainer:
15+
uses: react/react/.github/workflows/shared_check_maintainer.yml@main
16+
permissions:
17+
# Used by check_maintainer
18+
contents: read
19+
with:
20+
actor: ${{ github.event.pull_request.user.login }}
21+
22+
label:
23+
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
24+
runs-on: ubuntu-latest
25+
needs: check_maintainer
26+
permissions:
27+
# Used to add labels on issues
28+
issues: write
29+
# Used to add labels on PRs
30+
pull-requests: write
31+
steps:
32+
- name: Label PR as React Core Team
33+
uses: actions/github-script@v7
34+
with:
35+
script: |
36+
github.rest.issues.addLabels({
37+
owner: context.repo.owner,
38+
repo: context.repo.repo,
39+
issue_number: ${{ github.event.number }},
40+
labels: ['React Core Team']
41+
});

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ public/rss.xml
5151

5252
# worktrees
5353
.worktrees/
54+
55+
# Generated OG images (scripts/generateOgImages.mjs)
56+
public/images/og/
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 7 additions & 0 deletions

‎eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,37 @@ async function run() {
110110
malformedFixed.output.includes("{expectedErrors: {'react-compiler': [4]}}"),
111111
'expected malformed metadata to be replaced with canonical form'
112112
);
113+
114+
const validHighlightResult = await lintFixture('valid-highlight.md');
115+
assert.strictEqual(
116+
validHighlightResult.messages.length,
117+
0,
118+
'expected a valid inline highlight to pass'
119+
);
120+
121+
const missingHighlightResult = await lintFixture('missing-highlight.md');
122+
assert.strictEqual(
123+
missingHighlightResult.messages.length,
124+
1,
125+
'expected a highlight with text missing from its line to fail'
126+
);
127+
assert.strictEqual(
128+
missingHighlightResult.messages[0].message,
129+
"Could not find 'submitAction' on highlighted line 1"
130+
);
131+
132+
const outOfBoundsHighlightResult = await lintFixture(
133+
'out-of-bounds-highlight.md'
134+
);
135+
assert.strictEqual(
136+
outOfBoundsHighlightResult.messages.length,
137+
1,
138+
'expected an out-of-bounds highlight line to fail'
139+
);
140+
assert.strictEqual(
141+
outOfBoundsHighlightResult.messages[0].message,
142+
'Code highlight line 3 is outside this code block'
143+
);
113144
}
114145

115146
run().catch((error) => {

0 commit comments

Comments
 (0)