Skip to content

Commit

Permalink
Merge pull request #52 from physiopy/add-workflows
Browse files Browse the repository at this point in the history
Add auto-author and auto-label to github workflow
  • Loading branch information
RayStick authored Jul 16, 2024
2 parents a362033 + b2150a7 commit 8979423
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/*', 'phys2denoise/_version.py', 'requirements.txt', 'pyproject.toml']

Testing:
- changed-files:
- any-glob-to-any-file: ['phys2denoise/tests/*', '.circleci/*']
17 changes: 17 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
15 changes: 15 additions & 0 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8979423

Please sign in to comment.