From 286eece73d0f126ad5f433bcdb22971abd9da50b Mon Sep 17 00:00:00 2001 From: Rachael Stickland <50215726+RayStick@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:56:00 +0100 Subject: [PATCH 1/3] add workflow files --- .github/labeler.yml | 11 +++++++++++ .github/workflows/auto-author-assign.yml | 17 +++++++++++++++++ .github/workflows/auto-label.yml | 15 +++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/auto-author-assign.yml create mode 100644 .github/workflows/auto-label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..20c2eca --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +Documentation: + - changed-files: + - any-glob-to-any-file: ['docs/*', '.readthedocs.yml', 'README.md', 'LICENSE', 'MANIFEST.in'] + +Internal: + - changed-files: + - any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', '.circleci/*', 'physiopy-repository-template/_version.py', 'requirements.txt', 'pyproject.toml'] + +Testing: + - changed-files: + - any-glob-to-any-file: ['physiopy-repository-template/tests/*', '.circleci/*'] diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml new file mode 100644 index 0000000..8b102ae --- /dev/null +++ b/.github/workflows/auto-author-assign.yml @@ -0,0 +1,17 @@ +name: Auto Author Assign + +on: + issues: + types: [ opened, reopened ] + pull_request_target: + types: [ opened, reopened ] + +permissions: + pull-requests: write + issues: write + +jobs: + assign-author: + runs-on: ubuntu-latest + steps: + - uses: toshimaru/auto-author-assign@v2.1.0 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 From 85e6cd17ed546938e6c1a9ccf212bcf9ab49934a Mon Sep 17 00:00:00 2001 From: Stefano Moia Date: Mon, 20 May 2024 08:58:48 +0200 Subject: [PATCH 2/3] Update .github/labeler.yml --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 20c2eca..dd35be2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,7 +4,7 @@ Documentation: Internal: - changed-files: - - any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', '.circleci/*', 'physiopy-repository-template/_version.py', 'requirements.txt', 'pyproject.toml'] + - any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', '.circleci/*', '*/_version.py', 'requirements.txt', 'pyproject.toml'] Testing: - changed-files: From abb3c95453752b11e23ca6ef7d1b47c7ca79170d Mon Sep 17 00:00:00 2001 From: Stefano Moia Date: Mon, 20 May 2024 08:59:45 +0200 Subject: [PATCH 3/3] Update .github/labeler.yml --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index dd35be2..1f424ae 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -8,4 +8,4 @@ Internal: Testing: - changed-files: - - any-glob-to-any-file: ['physiopy-repository-template/tests/*', '.circleci/*'] + - any-glob-to-any-file: ['*/tests/*', 'conftest.py', '.circleci/*']