From 649d2bd9c58d058e39cb4ea3d20fd1464594d7f1 Mon Sep 17 00:00:00 2001 From: Vladimir Portnov Date: Fri, 6 Sep 2024 16:15:40 +0800 Subject: [PATCH] temporary: remove user limitations on commands Signed-off-by: Vladimir Portnov --- .github/workflow_templates/dispatch-slash-command.yml | 4 ++-- .github/workflows/dispatch-slash-command.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflow_templates/dispatch-slash-command.yml b/.github/workflow_templates/dispatch-slash-command.yml index 3d13513d71..abd3a2abaf 100644 --- a/.github/workflow_templates/dispatch-slash-command.yml +++ b/.github/workflow_templates/dispatch-slash-command.yml @@ -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'); } @@ -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'); } diff --git a/.github/workflows/dispatch-slash-command.yml b/.github/workflows/dispatch-slash-command.yml index 9808020e45..a0545242d9 100644 --- a/.github/workflows/dispatch-slash-command.yml +++ b/.github/workflows/dispatch-slash-command.yml @@ -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'); } @@ -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'); }