Skip to content

Commit 8368d75

Browse files
committed
fix workflow
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 603d958 commit 8368d75

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
name: Ready-for-review label
22

3-
# Caller workflow that wires this repository's pull-request events up to the
4-
# reusable `manage-ready-for-review.yml` workflow, which removes the
5-
# "ready-for-review" label once a PR is no longer awaiting review.
3+
# When a pull-request changes state (closed, converted to draft) or a review is submitted/dismissed,
4+
# run the `manage-ready-for-review.yml` workflow, to remove the
5+
# "ready-for-review" label from a PR if its no longer needed.
66
#
77
# `pull_request_target` (rather than `pull_request`) is required so that the job
88
# has a read/write token for pull requests opened from forks. This is safe here
99
# because the reusable workflow never checks out or executes pull-request code.
1010
#
11-
# The label logic lives in the organisation's `.github` repository so that every
12-
# repository consumes the same engine. To roll this out to another repository,
13-
# copy this file verbatim - the `uses:` reference below already points at the
14-
# shared engine.
11+
# The label removal workflow lives in hyperlight-dev's `.github` repository. To apply this workflow
12+
# to another repository, copy this file to that repo.
1513
on:
1614
pull_request_target:
1715
types: [closed, converted_to_draft]
1816
pull_request_review:
1917
types: [submitted, dismissed]
2018

21-
# Serialise runs per pull request so that concurrent events (for example, a
22-
# review submitted at the same moment the PR is closed) cannot race on the label.
19+
# Serialise runs per pull request so that concurrent events cannot race.
2320
concurrency:
2421
group: ready-for-review-${{ github.event.pull_request.number }}
2522
cancel-in-progress: false
@@ -30,8 +27,7 @@ permissions:
3027
issues: write
3128
jobs:
3229
manage-label:
33-
# Shared engine in the org-wide `.github` repository, pinned to a commit SHA
34-
# (matching this repository's action-pinning convention).
35-
uses: hyperlight-dev/.github/.github/workflows/manage-ready-for-review.yml@8eaae4229db908ea64fff06c31dbf5677611ce5e
30+
# Shared workflow in the org-wide `.github` repository, pinned to a commit SHA
31+
uses: hyperlight-dev/.github/.github/workflows/manage-ready-for-review.yml@55e0ed4457b40f371ec9b6f2828397b09a833a43
3632
with:
3733
pr-number: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)