File tree Expand file tree Collapse file tree 5 files changed +89
-4
lines changed
Expand file tree Collapse file tree 5 files changed +89
-4
lines changed Original file line number Diff line number Diff line change 77 - main # change this if your default branch is named differently
88 workflow_dispatch :
99
10+ permissions : {}
11+
1012jobs :
1113 analyze :
1214 runs-on : ubuntu-latest
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
Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ name: Analyze Bundle (Comment)
22
33on :
44 workflow_run :
5- workflows : [" Analyze Bundle" ]
5+ workflows : [' Analyze Bundle' ]
66 types :
77 - completed
88
9+ permissions : {}
10+
911jobs :
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 }}
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 }}
Original file line number Diff line number Diff line change 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+ 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 }}
Original file line number Diff line number Diff line change 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+ });
Original file line number Diff line number Diff line change 77 pull_request :
88 types : [opened, synchronize, reopened]
99
10+ permissions : {}
11+
1012jobs :
1113 lint :
1214 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments