We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65afdd commit 7023d1bCopy full SHA for 7023d1b
.github/workflows/shared_check_maintainer.yml
@@ -29,7 +29,17 @@ jobs:
29
script: |
30
const fs = require('fs');
31
const actor = '${{ inputs.actor }}';
32
- const data = await fs.readFileSync('./MAINTAINERS', { encoding: 'utf8' });
+ 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' });
43
const maintainers = new Set(data.split('\n'));
44
if (maintainers.has(actor)) {
45
console.log(`🟢 ${actor} is a maintainer`);
0 commit comments