From c1fc4ac07a6d8ff811e5dc65130e4d913a10b1f2 Mon Sep 17 00:00:00 2001 From: Rachael Stickland <50215726+RayStick@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:21:27 +0100 Subject: [PATCH 1/2] add labeler yml --- .github/labeler.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..98c8518 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,14 @@ +Documentation: + - changed-files: + - any-glob-to-any-file: ['README.md'] +# - any-glob-to-any-file: ['docs/*', '.readthedocs.yml', 'logos/*', 'README.md'] + + +Internal: + - changed-files: + - any-glob-to-any-file: ['.github/*'] + # - any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', '.circleci/*', 'nigsp/_version.py'] + +# Testing: +# - changed-files: +# - any-glob-to-any-file: ['nigsp/tests/*', '.circleci/*'] From 7b667c669b4622c14499a72f8e3bb4736d2067f3 Mon Sep 17 00:00:00 2001 From: Rachael Stickland <50215726+RayStick@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:22:20 +0100 Subject: [PATCH 2/2] Create auto-label.yml --- .github/workflows/auto-label.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/auto-label.yml diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml new file mode 100644 index 0000000..a4c3f22 --- /dev/null +++ b/.github/workflows/auto-label.yml @@ -0,0 +1,15 @@ +name: auto-label +concurrency: + group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }} + cancel-in-progress: true +on: # yamllint disable-line rule:truthy + pull_request_target + +jobs: + pr: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5