From 37c4f36e52ce4bc43c79bf60b844b7038fc93557 Mon Sep 17 00:00:00 2001 From: David Zager Date: Wed, 7 Feb 2024 11:27:22 -0500 Subject: [PATCH] :seedling: one workflow for issue(-comments) (#494) Signed-off-by: David Zager --- .github/workflows/issue-comment.yaml | 9 --------- .github/workflows/issue.yaml | 22 ---------------------- .github/workflows/issues.yaml | 26 ++++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/issue-comment.yaml delete mode 100644 .github/workflows/issue.yaml create mode 100644 .github/workflows/issues.yaml diff --git a/.github/workflows/issue-comment.yaml b/.github/workflows/issue-comment.yaml deleted file mode 100644 index b2ad6bc4..00000000 --- a/.github/workflows/issue-comment.yaml +++ /dev/null @@ -1,9 +0,0 @@ -name: Handle Issue Comment - -on: - issue_comment: - -jobs: - reconcile-issue-comment: - secrets: inherit - uses: konveyor/release-tools/.github/workflows/reconcile-issue-comment.yaml@main diff --git a/.github/workflows/issue.yaml b/.github/workflows/issue.yaml deleted file mode 100644 index 8608896d..00000000 --- a/.github/workflows/issue.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: Reconcile GitHub Issue - -on: - issues: - types: - - opened - - edited - - closed - - reopened - - labeled - - unlabeled - -# This prevents potential race conditions by only allowing this action to handle -# one update at a time for a given issue. -concurrency: - group: reconcile-issue-${{ github.event.issue.number }} - cancel-in-progress: true - -jobs: - reconcile-issue: - secrets: inherit - uses: konveyor/release-tools/.github/workflows/reconcile-issue.yaml@main diff --git a/.github/workflows/issues.yaml b/.github/workflows/issues.yaml new file mode 100644 index 00000000..0c4207d7 --- /dev/null +++ b/.github/workflows/issues.yaml @@ -0,0 +1,26 @@ +name: Reconcile GitHub Issue (Comment) + +on: + issues: + types: + - opened + - edited + - closed + - reopened + - labeled + - unlabeled + issue_comment: + types: + - created + - edited + +jobs: + reconcile-issue: + if: github.event_name == 'issues' || github.event_name == 'pull_request' + secrets: inherit + uses: konveyor/release-tools/.github/workflows/reconcile-issue.yaml@main + + reconcile-issue-comment: + if: github.event_name == 'issue_comment' + secrets: inherit + uses: konveyor/release-tools/.github/workflows/reconcile-issue-comment.yaml@main