Skip to content

Commit

Permalink
Add labeler
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Dec 9, 2023
1 parent c6ebee5 commit c5946c5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/labeler.yml
@@ -0,0 +1,11 @@
# Add 'beta' label to any PR where the head branch name starts with `beta` or has a `beta` section in the name
beta:
- base-branch: ['^beta', 'beta', 'beta*']

# Add 'beta' label to any PR where the head branch name starts with `beta` or has a `beta` section in the name
alpha:
- base-branch: ['^alpha', 'alpha', 'alpha*']

# Add 'latest' label to any PR where the head branch name starts with `latest` or has a `latest` section in the name
latest:
- base-branch: ['^latest', 'latest', 'latest*']
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
@@ -0,0 +1,12 @@
name: Labeler

on:
pull_request_target: # required for auto labeler
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
stale:
uses: homebridge/.github/.github/workflows/labeler.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c5946c5

Please sign in to comment.