Skip to content

Commit

Permalink
Label PRs automatically (#2126)
Browse files Browse the repository at this point in the history
* ci: label PRs automatically

* feat: auto label translations too
  • Loading branch information
scarf005 authored Oct 30, 2022
1 parent 6dd7a31 commit 5ecc66d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
src:
- src/**/*

tests:
- tests/**/*

data:
- data/**/*

mods:
- data/mods/**/*

translation:
- lang/**/*
17 changes: 17 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Label Pull Requests

on:
- pull_request_target

jobs:
triage:
runs-on: ubuntu-22.04

permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5ecc66d

Please sign in to comment.