Skip to content

FreeToken brings datacenter-scale model serving to your desktop. Run massive models locally, fast and efficiently.

ci: auto-label amd issues and prs by title (#620)

Xiaoze Fan377a3bc4284f
diff --git a/.github/issue-title-labeler.yml b/.github/issue-title-labeler.yml
new file mode 100644
index 00000000..48826301
--- /dev/null
+++ b/.github/issue-title-labeler.yml
@@ -0,0 +1,2 @@
+amd:
+ - '/\b(ROCm|HIP|RCCL|RDNA\s?\d?|CDNA\s?\d?|gfx\d{3,4}[a-z]?|MI\d{3}X?|RX\s?\d{4}|Radeon(?!\s*(\d{3}M|Graphics|Vega))|AMD[\s-]*(GPUs?|graphics|cards?|Instinct))\b|\bAMD[\s-]*显卡|\(amd\)|(?<!\w)A卡/i'
diff --git a/.github/workflows/issue-labels.yml b/.github/workflows/issue-labels.yml
index 35f325bf..0c11c3c4 100644
--- a/.github/workflows/issue-labels.yml
+++ b/.github/workflows/issue-labels.yml
@@ -1,23 +1,35 @@
-name: Label issues
+name: Label issues and PRs
on:
issues:
types: [opened, edited]
+ pull_request_target:
+ types: [opened, edited]
permissions:
issues: write
+ pull-requests: write
jobs:
label:
runs-on: ubuntu-latest
steps:
- - uses: github/[email protected]
+ - if: github.event_name == 'issues'
+ uses: github/[email protected]
with:
configuration-path: .github/issue-labeler.yml
enable-versioned-regex: 0
include-title: 0
repo-token: ${{ github.token }}
- - if: github.event.action == 'opened'
+ - if: github.event.action == 'opened' || github.event.changes.title
+ uses: github/[email protected]
+ with:
+ configuration-path: .github/issue-title-labeler.yml
+ enable-versioned-regex: 0
+ include-title: 1
+ include-body: 0
+ repo-token: ${{ github.token }}
+ - if: github.event_name == 'issues' && github.event.action == 'opened'
uses: actions/github-script@v7
with:
script: |