From f9d93cfed0aa3b75799f182e9c81ec6f9b31d437 Mon Sep 17 00:00:00 2001 From: Hank Donnay Date: Mon, 16 Dec 2024 11:56:53 -0600 Subject: [PATCH] fast-forward: use central workflow Signed-off-by: Hank Donnay --- .github/workflows/fast-forward.yaml | 36 +++++++++++------------------ 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/.github/workflows/fast-forward.yaml b/.github/workflows/fast-forward.yaml index a4515e8..11aa1a2 100644 --- a/.github/workflows/fast-forward.yaml +++ b/.github/workflows/fast-forward.yaml @@ -1,23 +1,15 @@ --- - name: Fast Forward - on: - issue_comment: - types: [created, edited] - jobs: - fast-forward: - # Only run if the comment contains the /fast-forward command. - if: ${{ contains(github.event.comment.body, '/fast-forward') - && github.event.issue.pull_request }} - runs-on: ubuntu-latest - - permissions: - contents: write - pull-requests: write - issues: write - - steps: - - name: Fast forwarding - uses: sequoia-pgp/fast-forward@v1 - with: - merge: true - comment: on-error +name: Fast Forward +on: + issue_comment: + types: [created, edited] + pull_request_review: + types: [submitted] +jobs: + fast-forward: + uses: quay/clair-workflows/.github/workflows/fast-forward.yml@main + + permissions: + contents: write + pull-requests: write + issues: write