chore: add labeler (#10285)

This commit is contained in:
Tony
2022-07-20 23:45:54 +08:00
committed by GitHub
parent 99b63f9755
commit 8b04fef528
4 changed files with 38 additions and 0 deletions
+2
View File
@@ -17,6 +17,8 @@ Please include route starts with /, with all required and optional parameters. F
```route
/some/route
/some/other/route
/dont/use/this/or/modify/it
/use/the/fenced/code/block/below
```
如果你的 PR 与路由无关, 请在 `routes` 区域 填写 `NOROUTE`,而不是直接删除 `routes` 区域。否则你的 PR 将会被无条件关闭。
If your changes are not related to route, please fill in `routes` with `NOROUTE`. Fail to comply will result in your PR being closed.
+12
View File
@@ -0,0 +1,12 @@
'Route: v1':
- any: ['lib/routes/**/*.js', '!lib/routes/index.js']
'Route: v2':
- 'lib/v2/**/*.js'
core enhancement:
- lib/routes/index.js
- any: ['lib/**', '!lib/routes/**', '!lib/v2/**/*.js']
dependencies:
- yarn.lock
+11
View File
@@ -42,3 +42,14 @@ jobs:
ignoreLabels: |
dependencies
wip: true
labeler:
name: Pull Request Labeler
if: ${{ github.event_name == 'pull_request_target' }}
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
+13
View File
@@ -122,3 +122,16 @@ jobs:
- run: yarn
- name: Build radar and maintainer
run: npm run build:all
automerge:
if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'
needs: [ jest, puppeteer, docs, all ]
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
target: patch