Skip to content

[Feature]: 支持同时使用 约定式路由 和 运行时配置 #151

[Feature]: 支持同时使用 约定式路由 和 运行时配置

[Feature]: 支持同时使用 约定式路由 和 运行时配置 #151

Workflow file for this run

name: Label Issues
on:
issues:
types: [opened]
jobs:
label:
runs-on: ubuntu-latest
steps:
- name: Label issues
uses: actions/github-script@v6
with:
github-token: ${{ secrets.REPO_SCOPED_TOKEN }}
script: |
const title = context.payload.issue.title
if (title.startsWith('Benchmark')) {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['benchmark']
})
}