Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Project: Add labeler workflow #175

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/labeler-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
documentation:
- any:
- changed-files:
- any-glob-to-any-file:
- "docs/**"

gui:
- any:
- changed-files:
- any-glob-to-any-file:
- "Source/gui/**"

santactl:
- any:
- changed-files:
- any-glob-to-any-file:
- "Source/santactl/**"

daemon:
- any:
- changed-files:
- any-glob-to-any-file:
- "Source/santad/**"

configurator:
- any:
- changed-files:
- any-glob-to-any-file:
- "Source/common/SNTConfigurator.*"

build:
- any:
- changed-files:
- any-glob-to-any-file:
- "**/BUILD"

28 changes: 28 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Process PRs

on:
- pull_request_target

jobs:
labels:
name: Labelers
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4.2.2
with:
sparse-checkout: .github

- name: Apply Labels
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # ratchet:actions/labeler@v5
with:
configuration-path: .github/labeler-pr.yml

- name: Apply Size Labels
uses: codelytv/pr-size-labeler@1c3422395d899286d5ee2c809fd5aed264d5eb9b # ratchet:codelytv/pr-size-labeler@v1.10.2