From b16a949e53c7f0aea119e06ba9f14c16acd12d94 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 6 Dec 2024 06:03:51 +0100 Subject: [PATCH] chore(ci): common issue-labels name for all related workflows It helps clarify in the list of status that they are all related to workflow triggered or controlled by issue labelling. --- .forgejo/workflows/backport.yml | 2 ++ .../workflows/cascade-setup-end-to-end.yml | 20 +------------------ .forgejo/workflows/merge-requirements.yml | 2 +- .../workflows/release-notes-assistant.yml | 2 ++ 4 files changed, 6 insertions(+), 20 deletions(-) diff --git a/.forgejo/workflows/backport.yml b/.forgejo/workflows/backport.yml index f2b8520a9b..ca5191dbf2 100644 --- a/.forgejo/workflows/backport.yml +++ b/.forgejo/workflows/backport.yml @@ -22,6 +22,8 @@ # `backport/v1.21` label on a merged pull request that can be backported # without conflict. # +name: issue-labels + on: pull_request_target: types: diff --git a/.forgejo/workflows/cascade-setup-end-to-end.yml b/.forgejo/workflows/cascade-setup-end-to-end.yml index 28400730f5..e9e9574840 100644 --- a/.forgejo/workflows/cascade-setup-end-to-end.yml +++ b/.forgejo/workflows/cascade-setup-end-to-end.yml @@ -14,7 +14,7 @@ # - after it is merged, double check it works by setting the # run-end-to-end-test on a pull request (any pull request will do) # -name: end-to-end +name: issue-labels on: push: @@ -25,24 +25,6 @@ on: - labeled jobs: - info: - if: vars.ROLE == 'forgejo-coding' - runs-on: docker - container: - image: code.forgejo.org/oci/node:20-bookworm - steps: - - name: event - run: | - echo github.event.pull_request.head.repo.fork = ${{ github.event.pull_request.head.repo.fork }} - echo github.event.action = ${{ github.event.action }} - echo github.event.label - cat <<'EOF' - ${{ toJSON(github.event.label) }} - EOF - cat <<'EOF' - ${{ toJSON(github.event) }} - EOF - cascade: if: > vars.ROLE == 'forgejo-coding' && ( diff --git a/.forgejo/workflows/merge-requirements.yml b/.forgejo/workflows/merge-requirements.yml index 7835825fec..d8a9618d2a 100644 --- a/.forgejo/workflows/merge-requirements.yml +++ b/.forgejo/workflows/merge-requirements.yml @@ -21,7 +21,7 @@ jobs: - name: Debug output run: | cat <<'EOF' - ${{ toJSON(github.event) }} + ${{ toJSON(github) }} EOF - name: Missing test label if: > diff --git a/.forgejo/workflows/release-notes-assistant.yml b/.forgejo/workflows/release-notes-assistant.yml index b1e2578fcf..b5df074ceb 100644 --- a/.forgejo/workflows/release-notes-assistant.yml +++ b/.forgejo/workflows/release-notes-assistant.yml @@ -1,3 +1,5 @@ +name: issue-labels + on: pull_request_target: types: