Skip to content

Commit

Permalink
Add labeler to automatically label PRs (#21)
Browse files Browse the repository at this point in the history
* Add labeler to ci system to automatically label PRs

* Add main requirements.txt in repo root
  • Loading branch information
alecbcs authored Mar 25, 2024
1 parent 18b4e58 commit 7b9b569
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ci:
- changed-files:
- any-glob-to-any-file:
- .github/**

dependencies:
- changed-files:
- any-glob-to-any-file:
- .github/workflows/requirements/**
- requirements.txt
- pyproject.toml

docs:
- changed-files:
- any-glob-to-any-file:
- docs/**
- README.md
21 changes: 21 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#-----------------------------------------------------------------------
# DO NOT modify unless you really know what you are doing.
#
# See https://stackoverflow.com/a/74959635 for more info.
# Talk to @alecbcs if you have questions/are not sure of a change's
# possible impact to security.
#-----------------------------------------------------------------------
name: label
on:
pull_request_target:
branches:
- develop

jobs:
pr:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9

0 comments on commit 7b9b569

Please sign in to comment.