Skip to content

Commit

Permalink
github: automatically label the PRs with matching branches
Browse files Browse the repository at this point in the history
Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur committed Nov 22, 2024
1 parent eee3215 commit 8c8b2f4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: The RamenDR authors
# SPDX-License-Identifier: Apache-2.0

---
# Add branch labels to the PRs matching their branch names
branch/main:
- base-branch: 'main'
branch/release-4.14:
- base-branch: 'release-4.14'
branch/release-4.15:
- base-branch: 'release-4.15'
branch/release-4.16:
- base-branch: 'release-4.16'
branch/release-4.17:
- base-branch: 'release-4.17'
branch/release-4.18:
- base-branch: 'release-4.18'
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: The RamenDR authors
# SPDX-License-Identifier: Apache-2.0

---
name: label pr
on: # yamllint disable-line rule:truthy
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5

0 comments on commit 8c8b2f4

Please sign in to comment.