Skip to content

[Bug]: 非markdown文件在特定情况下会被写入到侧边栏目录中 #233

[Bug]: 非markdown文件在特定情况下会被写入到侧边栏目录中

[Bug]: 非markdown文件在特定情况下会被写入到侧边栏目录中 #233

Workflow file for this run

name: Label Issues
on:
issues:
types: [opened]
jobs:
label:
runs-on: ubuntu-latest
if: github.repository == 'web-infra-dev/rspress'
steps:
- name: Label issues
uses: actions/github-script@v7
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']
})
}