From 837c26a27742de72c1d0c89ad7f68efe1455550a Mon Sep 17 00:00:00 2001 From: Rachael Stickland <50215726+RayStick@users.noreply.github.com> Date: Tue, 23 Apr 2024 09:11:48 +0100 Subject: [PATCH 1/6] add workflow files --- .github/labeler.yml | 16 ++++++++++++++++ .github/workflows/auto-author-assign.yml | 17 +++++++++++++++++ .github/workflows/auto-label.yml | 15 +++++++++++++++ 3 files changed, 48 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 000000000..dd05ff748 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,16 @@ +Documentation: + - changed-files: + - any-glob-to-any-file: ['docs/*', '.readthedocs.yml', 'README.md'] +# removed from nigsp copy as didn't find match with phys2bids: 'logos/*' + + +Internal: + - changed-files: + - any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', 'phys2bids/_version.py'] +# removed from nigsp copy as didn't find match with phys2bids: '.circleci/*' + + + Testing: + - changed-files: + any-glob-to-any-file: ['phys2bids/tests/*'] +# removed from nigsp copy as didn't find match with phys2bids: '.circleci/*' diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml new file mode 100644 index 000000000..529ef3d52 --- /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 \ No newline at end of file diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml new file mode 100644 index 000000000..85725a9c4 --- /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 \ No newline at end of file From 1f8a6ec9456e4f3d16eccf149afdce6e473dcbf1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:12:12 +0000 Subject: [PATCH 2/6] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/auto-author-assign.yml | 2 +- .github/workflows/auto-label.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml index 529ef3d52..8b102ae69 100644 --- a/.github/workflows/auto-author-assign.yml +++ b/.github/workflows/auto-author-assign.yml @@ -14,4 +14,4 @@ jobs: assign-author: runs-on: ubuntu-latest steps: - - uses: toshimaru/auto-author-assign@v2.1.0 \ No newline at end of file + - uses: toshimaru/auto-author-assign@v2.1.0 diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 85725a9c4..a4c3f228f 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -12,4 +12,4 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/labeler@v5 \ No newline at end of file + - uses: actions/labeler@v5 From 13b00a14336b67e148c861bce8bfec99af01656c Mon Sep 17 00:00:00 2001 From: Rachael Stickland <50215726+RayStick@users.noreply.github.com> Date: Wed, 24 Apr 2024 09:10:47 +0100 Subject: [PATCH 3/6] Update .github/labeler.yml Co-authored-by: Stefano Moia --- .github/labeler.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index dd05ff748..53385d334 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,8 +1,6 @@ Documentation: - changed-files: - - any-glob-to-any-file: ['docs/*', '.readthedocs.yml', 'README.md'] -# removed from nigsp copy as didn't find match with phys2bids: 'logos/*' - + - any-glob-to-any-file: ['docs/*', '.readthedocs.yml', 'README.md', 'LICENSE', 'MANIFEST.in'] Internal: - changed-files: From 09455d3514bda39077d11aada18de7359749b9f9 Mon Sep 17 00:00:00 2001 From: Rachael Stickland <50215726+RayStick@users.noreply.github.com> Date: Wed, 24 Apr 2024 09:10:59 +0100 Subject: [PATCH 4/6] Update .github/labeler.yml Co-authored-by: Stefano Moia --- .github/labeler.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 53385d334..575f1cc91 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,9 +4,7 @@ Documentation: Internal: - changed-files: - - any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', 'phys2bids/_version.py'] -# removed from nigsp copy as didn't find match with phys2bids: '.circleci/*' - + - any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', '.circleci/*', 'phys2bids/_version.py', 'requirements.txt', 'pyproject.toml'] Testing: - changed-files: From 5c5d0a6164e48298db95200ca7754d2b0083de0c Mon Sep 17 00:00:00 2001 From: Rachael Stickland <50215726+RayStick@users.noreply.github.com> Date: Wed, 24 Apr 2024 09:11:40 +0100 Subject: [PATCH 5/6] Update .github/labeler.yml Co-authored-by: Stefano Moia --- .github/labeler.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 575f1cc91..5f651a574 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -7,6 +7,5 @@ Internal: - any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', '.circleci/*', 'phys2bids/_version.py', 'requirements.txt', 'pyproject.toml'] Testing: - - changed-files: - any-glob-to-any-file: ['phys2bids/tests/*'] -# removed from nigsp copy as didn't find match with phys2bids: '.circleci/*' + - changed-files: + - any-glob-to-any-file: ['phys2bids/tests/*', '.circleci/*'] From 6144adff0d214d307c6bd9532a396de10bb4a534 Mon Sep 17 00:00:00 2001 From: Rachael Stickland <50215726+RayStick@users.noreply.github.com> Date: Wed, 24 Apr 2024 09:20:53 +0100 Subject: [PATCH 6/6] correct indentation --- .github/labeler.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 5f651a574..91c93c8e7 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -6,6 +6,6 @@ Internal: - changed-files: - any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', '.circleci/*', 'phys2bids/_version.py', 'requirements.txt', 'pyproject.toml'] - Testing: - - changed-files: - - any-glob-to-any-file: ['phys2bids/tests/*', '.circleci/*'] +Testing: + - changed-files: + - any-glob-to-any-file: ['phys2bids/tests/*', '.circleci/*']