Skip to content

Commit 60e4d6c

Browse files
merging all conflicts
2 parents 1c12dc1 + f6d762c commit 60e4d6c

File tree

5 files changed

+89
-4
lines changed

5 files changed

+89
-4
lines changed

.github/workflows/analyze.yml

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- main # change this if your default branch is named differently
88
workflow_dispatch:
99

10+
permissions: {}
11+
1012
jobs:
1113
analyze:
1214
runs-on: ubuntu-latest
@@ -55,7 +57,11 @@ jobs:
5557
name: bundle_analysis.json
5658

5759
- name: Download base branch bundle stats
60+
<<<<<<< HEAD
5861
uses: dawidd6/action-download-artifact@v4
62+
=======
63+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
64+
>>>>>>> f6d762cbbf958ca45bb8d1d011b31e5289e43a3d
5965
if: success() && github.event.number
6066
with:
6167
workflow: analyze.yml

.github/workflows/analyze_comment.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: Analyze Bundle (Comment)
22

33
on:
44
workflow_run:
5-
workflows: ["Analyze Bundle"]
5+
workflows: ['Analyze Bundle']
66
types:
77
- completed
88

9+
permissions: {}
10+
911
jobs:
1012
comment:
1113
runs-on: ubuntu-latest
@@ -14,15 +16,15 @@ jobs:
1416
github.event.workflow_run.conclusion == 'success' }}
1517
steps:
1618
- name: Download base branch bundle stats
17-
uses: dawidd6/action-download-artifact@v2
19+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
1820
with:
1921
workflow: analyze.yml
2022
run_id: ${{ github.event.workflow_run.id }}
2123
name: analysis_comment.txt
2224
path: analysis_comment.txt
2325

2426
- name: Download PR number
25-
uses: dawidd6/action-download-artifact@v2
27+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
2628
with:
2729
workflow: analyze.yml
2830
run_id: ${{ github.event.workflow_run.id }}
@@ -48,7 +50,7 @@ jobs:
4850
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
4951
5052
- name: Comment
51-
uses: marocchino/sticky-pull-request-comment@v2
53+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
5254
with:
5355
header: next-bundle-analysis
5456
number: ${{ steps.get-comment-body.outputs.pr-number }}

.github/workflows/discord_notify.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Discord Notify
2+
3+
on:
4+
pull_request:
5+
types: [opened, ready_for_review]
6+
7+
permissions: {}
8+
9+
jobs:
10+
check_maintainer:
11+
uses: facebook/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+
is_remote: true
18+
19+
notify:
20+
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
21+
needs: check_maintainer
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Discord Webhook Action
25+
uses: tsickert/[email protected]
26+
with:
27+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
28+
embed-author-name: ${{ github.event.pull_request.user.login }}
29+
embed-author-url: ${{ github.event.pull_request.user.html_url }}
30+
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
31+
embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
32+
embed-description: ${{ github.event.pull_request.body }}
33+
embed-url: ${{ github.event.pull_request.html_url }}
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Label Core Team PRs
2+
3+
on:
4+
pull_request:
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: facebook/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+
is_remote: true
22+
23+
label:
24+
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
25+
runs-on: ubuntu-latest
26+
needs: check_maintainer
27+
permissions:
28+
# Used to add labels on issues
29+
issues: write
30+
# Used to add labels on PRs
31+
pull-requests: write
32+
steps:
33+
- name: Label PR as React Core Team
34+
uses: actions/github-script@v7
35+
with:
36+
script: |
37+
github.rest.issues.addLabels({
38+
owner: context.repo.owner,
39+
repo: context.repo.repo,
40+
issue_number: ${{ github.event.number }},
41+
labels: ['React Core Team']
42+
});

.github/workflows/site_lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
permissions: {}
11+
1012
jobs:
1113
lint:
1214
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)