From 7e08fc1fc19794003d0c1a1ede704a11f22f97ce Mon Sep 17 00:00:00 2001 From: Joaquin Matres <4514346+joamatab@users.noreply.github.com> Date: Sun, 3 Mar 2024 08:29:23 -0800 Subject: [PATCH] add require labels --- .github/workflows/pages.yml | 4 ++-- .github/workflows/require-labels.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/require-labels.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c0a6c7a9..0b5281b7 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,4 +1,4 @@ -name: Sphinx docs to gh-pages +name: build docs on: pull_request: @@ -30,7 +30,7 @@ jobs: make install make docs - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: "./docs/_build/html/" diff --git a/.github/workflows/require-labels.yml b/.github/workflows/require-labels.yml new file mode 100644 index 00000000..4df124dd --- /dev/null +++ b/.github/workflows/require-labels.yml @@ -0,0 +1,17 @@ +name: Pull Request Labels +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] +jobs: + label: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: mheap/github-action-required-labels@v5 + with: + mode: minimum + count: 1 + labels: "breaking, bug, github_actions, documentation, dependencies, enhancement, feature, maintenance, security" + add_comment: true