mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Auto-label PRs based on files + targeting release
This commit is contained in:
2
.github/workflows/issues-auto-manager.yml
vendored
2
.github/workflows/issues-auto-manager.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
# https://github.com/marketplace/actions/regex-issue-labeler
|
||||
uses: github/issue-labeler@v3
|
||||
with:
|
||||
configuration-path: .github/issues-auto-labeler.yml
|
||||
configuration-path: .github/issues-auto-labels.yml
|
||||
enable-versioned-regex: 0
|
||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
26
.github/workflows/pr-auto-manager.yml
vendored
26
.github/workflows/pr-auto-manager.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
commentOnDirty: "This pull request has conflicts. Please resolve them, otherwise it cannot be merged."
|
||||
|
||||
pr-size-labeler:
|
||||
name: Label PR Size
|
||||
name: Apply Label for PR Size
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -49,6 +49,30 @@ jobs:
|
||||
"package-lock.json"
|
||||
"public/lib/*"
|
||||
|
||||
label-release-prs:
|
||||
name: Label PRs Targeting Release Branch
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Label PRs Targeting Release Branch
|
||||
if: github.base_ref == 'release'
|
||||
run: |
|
||||
gh pr edit ${{ github.event.pull_request.number }} --add-label "❗ Against Release Branch"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
|
||||
apply-file-based-labels:
|
||||
name: Apply Labels Based on Changed Files
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Apply Labels Based on Changed Files
|
||||
# Pull Request Labeler
|
||||
# https://github.com/marketplace/actions/labeler
|
||||
uses: actions/labeler@v5
|
||||
with:
|
||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
|
||||
pr-auto-comments:
|
||||
name: Post PR Comments Based on Labels
|
||||
needs: [check-merge-conflicts, pr-size-labeler]
|
||||
|
Reference in New Issue
Block a user