From eb9e135123c8ce6abee77cd0597a777810d92005 Mon Sep 17 00:00:00 2001 From: Vladimir Portnov Date: Mon, 9 Sep 2024 14:10:32 +0800 Subject: [PATCH] temporary: disable command checks --- .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..2fa9ad3205 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 && isPrivate) { 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 && isPrivate) { core.notice(`Comment on pull request.`); return core.setOutput('trigger_for_pull_request', 'true'); }