Skip to content

Commit

Permalink
temporary: remove user limitations on commands
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Portnov <[email protected]>
  • Loading branch information
Taior committed Sep 6, 2024
1 parent f88995e commit 649d2bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflow_templates/dispatch-slash-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
core.info(`Has 'changelog' label? ${hasChangelogLabel}`)
core.info(`Has 'auto' label? ${hasAutoLabel}`)
if (isReleaseIssue && (authorAssociation === 'OWNER' || authorAssociation === 'MEMBER' || (isPrivate && authorAssociation === 'COLLABORATOR'))) {
if (isReleaseIssue && isPrivate) {
core.notice(`Comment on release issue with possible slash command.`);
return core.setOutput('trigger_for_release_issue', 'true');
}
Expand All @@ -71,7 +71,7 @@ jobs:
// Member is a member of the github organization and the organization is public (here https://github.com/orgs/deckhouse/people)
// Collaborator is a member of github and the organization is private (here https://github.com/orgs/deckhouse/people)
// Contributor is a person who is not a member of github, but has contributed to the repository.
if (isPR && (authorAssociation === 'OWNER' || authorAssociation === 'MEMBER' || authorAssociation === 'COLLABORATOR')) {
if (isPR && isPrivate) {
core.notice(`Comment on pull request.`);
return core.setOutput('trigger_for_pull_request', 'true');
}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dispatch-slash-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
core.info(`Has 'changelog' label? ${hasChangelogLabel}`)
core.info(`Has 'auto' label? ${hasAutoLabel}`)
if (isReleaseIssue && (authorAssociation === 'OWNER' || authorAssociation === 'MEMBER' || (isPrivate && authorAssociation === 'COLLABORATOR'))) {
if (isReleaseIssue) {
core.notice(`Comment on release issue with possible slash command.`);
return core.setOutput('trigger_for_release_issue', 'true');
}
Expand All @@ -75,7 +75,7 @@ jobs:
// Member is a member of the github organization and the organization is public (here https://github.com/orgs/deckhouse/people)
// Collaborator is a member of github and the organization is private (here https://github.com/orgs/deckhouse/people)
// Contributor is a person who is not a member of github, but has contributed to the repository.
if (isPR && (authorAssociation === 'OWNER' || authorAssociation === 'MEMBER' || authorAssociation === 'COLLABORATOR')) {
if (isPR) {
core.notice(`Comment on pull request.`);
return core.setOutput('trigger_for_pull_request', 'true');
}
Expand Down

0 comments on commit 649d2bd

Please sign in to comment.