From c611e76aca54b277f0780fc51461683e14bceac9 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 9 Jun 2022 15:32:10 -0700 Subject: [PATCH 1/3] Update CI for using GitHub releases for the changelog --- .github/workflows/pr-file-check.yml | 7 ------- .github/workflows/pr-labels.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/pr-labels.yml diff --git a/.github/workflows/pr-file-check.yml b/.github/workflows/pr-file-check.yml index fe538bb683a0..3eb7ad7b6338 100644 --- a/.github/workflows/pr-file-check.yml +++ b/.github/workflows/pr-file-check.yml @@ -15,13 +15,6 @@ jobs: name: 'Check for changed files' runs-on: ubuntu-latest steps: - - name: 'News entry' - uses: brettcannon/check-for-changed-files@v1.1.0 - with: - file-pattern: 'news/*/*.md' - skip-label: 'skip news' - failure-message: 'News entry file missing; see news/README.md for instructions (the ${skip-label} label can be used to pass this check)' - - name: 'package-lock.json matches package.json' uses: brettcannon/check-for-changed-files@v1.1.0 with: diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml new file mode 100644 index 000000000000..f7482b5bafb7 --- /dev/null +++ b/.github/workflows/pr-labels.yml @@ -0,0 +1,19 @@ +name: 'PR labels' +on: + pull_request: + types: + - 'opened' + - 'reopened' + - 'labeled' + - 'unlabeled' + +jobs: + classify: + name: 'Classify PR' + runs-on: ubuntu-latest + steps: + - name: 'PR impact specified' + uses: zwaldowski/match-label-action@v1 + with: + allowed: 'bug, debt, feature-request, skip news' + From 9da4f3230ff1ac7090b1d8a866803d743c9c6371 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 9 Jun 2022 16:52:10 -0700 Subject: [PATCH 2/3] Format with Prettier --- .github/workflows/pr-labels.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index f7482b5bafb7..c43bc7bfea67 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -13,7 +13,6 @@ jobs: runs-on: ubuntu-latest steps: - name: 'PR impact specified' - uses: zwaldowski/match-label-action@v1 + uses: zwaldowski/match-label-action@v3 with: - allowed: 'bug, debt, feature-request, skip news' - + allowed: bug, debt, feature-request, skip news From 8bd599bc5e9fba6f78055fab665068fd2230703c Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 9 Jun 2022 16:59:52 -0700 Subject: [PATCH 3/3] Switch the action checking for a label --- .github/workflows/pr-labels.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index c43bc7bfea67..3e676b18c55f 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -6,6 +6,7 @@ on: - 'reopened' - 'labeled' - 'unlabeled' + - 'synchronize' jobs: classify: @@ -13,6 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - name: 'PR impact specified' - uses: zwaldowski/match-label-action@v3 + uses: mheap/github-action-required-labels@v1 with: - allowed: bug, debt, feature-request, skip news + mode: exactly + count: 1 + labels: 'bug, debt, feature-request, skip news'