Skip to content

Commit

Permalink
Add GitHub action for auto-labeling PRs (#1438)
Browse files Browse the repository at this point in the history
At deployment time, we don't have a way within Teletraan to differentiate which commits are relevant to that service. With this GHA, we will be able to look at the diff in GitHub and filter by labels depending on which service we are deploying.

https://github.com/actions/labeler
  • Loading branch information
gzpcho authored Feb 1, 2024
1 parent 0349e3b commit 443a627
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
deploy-agent:
- changed-files:
- any-glob-to-any-file: deploy-agent/**
deploy-board:
- changed-files:
- any-glob-to-any-file: deploy-board/**
deploy-sentinel:
- changed-files:
- any-glob-to-any-file: deploy-sentinel/**
deploy-service:
- changed-files:
- any-glob-to-any-file: deploy-service/**
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Pull Request Labeler"

on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

0 comments on commit 443a627

Please sign in to comment.