forked from PecanProject/pecan
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from RohanSasne/PRLabeler
Pr labeler
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# | ||
# Add project labels | ||
# | ||
|
||
# Add 'Documentation' label to any changes in the documentation | ||
|
||
'Documentation': | ||
- documentation/** | ||
- **.md | ||
|
||
# Add 'Website' label to any changes in the web directory | ||
|
||
'Website': | ||
- web/** | ||
|
||
# Add 'Base' label to any changes in the base directory | ||
|
||
'Base': | ||
- base/** | ||
|
||
# Add 'Models' label to any changes in the models directory | ||
|
||
'Models': | ||
- models/** | ||
|
||
# Add 'Modules' label to any changes in the modules directory | ||
|
||
'Modules': | ||
- modules/** | ||
|
||
'GitHub Actions': | ||
- .github/workflows/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This workflow is based on github action official label action v4. | ||
# This workflow action is triggered on pull request event(on both fork & inside repo) | ||
# Labels will be applied based on filepath modification in PR. | ||
# This workflow uses a regex based labeling config file(.github/labeler.yml) to take labeling decision. | ||
|
||
name: "Pull Request Labeler" | ||
on: | ||
- pull_request_target | ||
|
||
jobs: | ||
triage: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: work around https://github.com/actions/checkout/issues/766 | ||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- uses: actions/checkout@v3 | ||
with: | ||
set-safe-directory: false | ||
- uses: actions/labeler@v4 |