We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b78ead + 55d7673 commit bf14e38Copy full SHA for bf14e38
.github/workflows/run-tests.yml
@@ -20,6 +20,17 @@ jobs:
20
return
21
}
22
23
+ // If the user that pushed the commit is a maintainer, skip the check
24
+ const collaborators = await github.rest.repos.listCollaborators({
25
+ owner: context.repo.owner,
26
+ repo: context.repo.repo
27
+ });
28
+
29
+ if (collaborators.data.some(c => c.login === context.actor)) {
30
+ console.log(`User ${context.actor} is allowed to run tests because they are a collaborator.`);
31
+ return
32
+ }
33
34
const issue_number = context.issue.number;
35
const repository = context.repo.repo;
36
const owner = context.repo.owner;
0 commit comments