Skip to content

Commit 8979423

Browse files
authored
Merge pull request #52 from physiopy/add-workflows
Add auto-author and auto-label to github workflow
2 parents a362033 + b2150a7 commit 8979423

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

.github/labeler.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Documentation:
2+
- changed-files:
3+
- any-glob-to-any-file: ['docs/*', '.readthedocs.yml', 'README.md', 'LICENSE', 'MANIFEST.in']
4+
5+
Internal:
6+
- changed-files:
7+
- any-glob-to-any-file: ['.*', 'codecov.yml', 'setup.cfg', 'setup.py', 'versioneer.py', '.github/*', '.circleci/*', 'phys2denoise/_version.py', 'requirements.txt', 'pyproject.toml']
8+
9+
Testing:
10+
- changed-files:
11+
- any-glob-to-any-file: ['phys2denoise/tests/*', '.circleci/*']
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Auto Author Assign
2+
3+
on:
4+
issues:
5+
types: [ opened, reopened ]
6+
pull_request_target:
7+
types: [ opened, reopened ]
8+
9+
permissions:
10+
pull-requests: write
11+
issues: write
12+
13+
jobs:
14+
assign-author:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: toshimaru/[email protected]

.github/workflows/auto-label.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: auto-label
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
4+
cancel-in-progress: true
5+
on: # yamllint disable-line rule:truthy
6+
pull_request_target
7+
8+
jobs:
9+
pr:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)