Merge pull request #812 from janhq/fixAutoLabels

chore: fix pr auto labeling
This commit is contained in:
0xSage 2023-12-01 15:16:03 +08:00 committed by GitHub
commit 31b2c7b309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,18 @@
name: "Auto Label Conventional Commits" name: "Auto Label Conventional Commits"
on: on:
issues:
types:
- reopened
- opened
pull_request: pull_request:
types: types:
- reopened - reopened
- opened - opened
jobs: jobs:
label_issues: label_prs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
issues: write
pull-requests: write pull-requests: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Label issues - name: Label PRs
run: | run: |
ISSUE_TITLE=$(gh issue view ${{ github.event.number }} --json title -q ".title") ISSUE_TITLE=$(gh issue view ${{ github.event.number }} --json title -q ".title")
case "$ISSUE_TITLE" in case "$ISSUE_TITLE" in