From c2821ca04c5a264377ee80f536dcae70b182db82 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Thu, 22 Feb 2024 15:01:59 -0500 Subject: [PATCH] PR auto labeler (#607) * Create open_actions_pr.yml [ci skip] * Create labeler.yml [ci skip] --- .github/labeler.yml | 65 +++++++++++++++++++++++++++ .github/workflows/open_actions_pr.yml | 15 +++++++ 2 files changed, 80 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/open_actions_pr.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..47103b41 --- /dev/null +++ b/.github/labeler.yml @@ -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 diff --git a/.github/workflows/open_actions_pr.yml b/.github/workflows/open_actions_pr.yml new file mode 100644 index 00000000..9562c3e9 --- /dev/null +++ b/.github/workflows/open_actions_pr.yml @@ -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 }}"