From 8bbabb75a3847db00cbe3f2b7934dba07397f9d9 Mon Sep 17 00:00:00 2001 From: Saransh Chopra Date: Thu, 10 Nov 2022 22:50:09 +0530 Subject: [PATCH 1/3] Add workflow to add PR labels --- .github/labeler.yml | 2 ++ .github/workflows/needs-release-notes.yaml | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/needs-release-notes.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..aaef6e82 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,2 @@ +needs release notes: +- all: ['!docs/release.rst'] \ No newline at end of file diff --git a/.github/workflows/needs-release-notes.yaml b/.github/workflows/needs-release-notes.yaml new file mode 100644 index 00000000..a328c863 --- /dev/null +++ b/.github/workflows/needs-release-notes.yaml @@ -0,0 +1,13 @@ +name: "Pull Request Labeler" + + on: + - pull_request_target + + jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + sync-labels: true \ No newline at end of file From b01f1e200e017ad671f28bccaee1325edd5b738b Mon Sep 17 00:00:00 2001 From: Saransh Chopra Date: Thu, 10 Nov 2022 22:51:38 +0530 Subject: [PATCH 2/3] Oops, file endings --- .github/labeler.yml | 2 +- .github/workflows/needs-release-notes.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index aaef6e82..dbc3b953 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,2 +1,2 @@ needs release notes: -- all: ['!docs/release.rst'] \ No newline at end of file +- all: ['!docs/release.rst'] diff --git a/.github/workflows/needs-release-notes.yaml b/.github/workflows/needs-release-notes.yaml index a328c863..5712e37a 100644 --- a/.github/workflows/needs-release-notes.yaml +++ b/.github/workflows/needs-release-notes.yaml @@ -10,4 +10,4 @@ name: "Pull Request Labeler" - uses: actions/labeler@main with: repo-token: ${{ secrets.GITHUB_TOKEN }} - sync-labels: true \ No newline at end of file + sync-labels: true From c75b3c5ad61d64ecba9c508b0f280fea40bffeb3 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Tue, 15 Nov 2022 11:21:55 -0800 Subject: [PATCH 3/3] Add release note --- docs/release.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/release.rst b/docs/release.rst index 223eedae..8ab5f1b1 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -56,6 +56,9 @@ Maintenance * Add tests for all registry classes. By :user:`Josh Moore `, :issue:`349`. +* Add workflow to label PRs with "needs release notes". + By :user:`Saransh Chopra ` :issue:`396`. + * Finish ``pyproject.toml`` migration. By :user:`John Kirkham ` :issue:`382`.