Skip to content

Commit

Permalink
ci: add additionalAllowedUsers to ecosystem-ci-trigger workflow (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Dec 23, 2024
1 parent a1f4b46 commit c31d747
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ecosystem-ci-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
const user = context.payload.sender.login
console.log(`Validate user: ${user}`)
const additionalAllowedUsers = ['lukastaegert']
let hasTriagePermission = false
try {
const { data } = await github.rest.repos.getCollaboratorPermissionLevel({
Expand All @@ -29,7 +31,7 @@ jobs:
console.warn(e)
}
if (hasTriagePermission) {
if (hasTriagePermission || additionalAllowedUsers.includes(user)) {
console.log('User is allowed. Adding +1 reaction.')
await github.rest.reactions.createForIssueComment({
owner: context.repo.owner,
Expand Down

0 comments on commit c31d747

Please sign in to comment.