Merge pull request #91 from adriadam10/ci-area-labels
ci: label pull requests by area
This commit is contained in:
commit
4e418f1c98
|
|
@ -0,0 +1,45 @@
|
|||
relinker:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'core/relinker/**'
|
||||
|
||||
shader:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'core/shader/**'
|
||||
|
||||
agc:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'core/libs/prx/libSceAgc*/**'
|
||||
|
||||
libc:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'core/libs/prx/libc/**'
|
||||
|
||||
libkernel:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'core/libs/prx/libkernel/**'
|
||||
|
||||
prx:
|
||||
- changed-files:
|
||||
- all-globs-to-any-file:
|
||||
- 'core/libs/prx/**'
|
||||
- '!core/libs/prx/libSceAgc*/**'
|
||||
- '!core/libs/prx/libc/**'
|
||||
- '!core/libs/prx/libkernel/**'
|
||||
|
||||
build:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '**/CMakeLists.txt'
|
||||
- '**/*.cmake'
|
||||
- '.gitmodules'
|
||||
- '3rdparty/**'
|
||||
|
||||
docs:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '**/*.md'
|
||||
- 'docs/**'
|
||||
|
||||
ci:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: '.github/**'
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
name: Area labels
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '30 * * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
steps:
|
||||
- id: prs
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
{
|
||||
echo 'numbers<<EOF'
|
||||
gh pr list -R "$GITHUB_REPOSITORY" --base "${{ github.event.repository.default_branch }}" -L 200 --json number --jq '.[].number'
|
||||
echo EOF
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
- if: steps.prs.outputs.numbers != ''
|
||||
uses: actions/labeler@v7
|
||||
with:
|
||||
pr-number: ${{ steps.prs.outputs.numbers }}
|
||||
Loading…
Reference in New Issue