File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 2929 script : |
3030 const fs = require('fs');
3131 const actor = '${{ inputs.actor }}';
32- const data = await fs.readFileSync('./MAINTAINERS', { encoding: 'utf8' });
32+ const data = octokit.rest.repos.getContent({
33+ owner: 'facebook',
34+ repo: 'react',
35+ path: 'MAINTAINERS.md',
36+ ref: 'main',
37+ headers: {
38+ Accept: 'application/vnd.github+json '
39+ }
40+ });
41+ console.log(data);
42+ # const data = await fs.readFileSync('./MAINTAINERS', { encoding: 'utf8' });
3343 const maintainers = new Set(data.split('\n'));
3444 if (maintainers.has(actor)) {
3545 console.log(`🟢 ${actor} is a maintainer`);
Original file line number Diff line number Diff line change 11name : (Shared) Label Core Team PRs
22
33on :
4- pull_request_target :
4+ pull_request :
55
66env :
77 TZ : /usr/share/zoneinfo/America/Los_Angeles
1010
1111jobs :
1212 check_maintainer :
13- uses : facebook/react/.github/workflows/shared_check_maintainer.yml@main
13+ uses : facebook/react/.github/workflows/shared_check_maintainer.yml@pr32215
1414 with :
1515 actor : ${{ github.event.pull_request.user.login }}
1616
You can’t perform that action at this time.
0 commit comments