Skip to content

Commit

Permalink
PR auto labeler (#607)
Browse files Browse the repository at this point in the history
* Create open_actions_pr.yml

[ci skip]

* Create labeler.yml

[ci skip]
  • Loading branch information
pllim authored Feb 22, 2024
1 parent e707113 commit c2821ca
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
ACS:
- changed-files:
- any-glob-to-any-file:
- ctegen2/*
- pkg/acs/**/*
- tests/acs/*

STIS:
- changed-files:
- any-glob-to-any-file:
- pkg/stis/**/*
- tests/stis/*

WFC3:
- changed-files:
- any-glob-to-any-file:
- pkg/wfc3/**/*
- tests/wfc3/*

IMPHTTAB:
- changed-files:
- any-glob-to-any-file:
- pkg/imphttab/**/*

build:
- changed-files:
- any-glob-to-any-file:
- .ci/bin/*
- .github/workflows/cmake.yml
- release_tools/*
- CMakeLists.txt
- config.h.in

doc:
- changed-files:
- any-glob-to-any-file:
- docs/**/*
- .readthedocs.yml
- '*.md'
- '*.txt'

hstio:
- changed-files:
- any-glob-to-any-file:
- cvos/*
- hstio/*
- tables/*

infrastructure:
- changed-files:
- any-glob-to-any-file:
- .github/*
- .sloccount
- harbinger.cfg

testing:
- changed-files:
- any-glob-to-any-file:
- .ci/**/*
- .github/workflows/*
- hstio/test/*
- pkg/imphttab/test_getphttab.c
- tests/**/*
- JenkinsfileRT
- pytest.ini
15 changes: 15 additions & 0 deletions .github/workflows/open_actions_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: When PR Opened

on:
pull_request_target:
types:
- opened

jobs:
label_pr:
runs-on: ubuntu-latest
steps:
- name: Label PR
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit c2821ca

Please sign in to comment.