mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
chore(ci): add labeler github action; (#6888)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
|
||||
"pr:docs":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: '**.md'
|
||||
|
||||
"pr:code":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'lib/**.js'
|
||||
|
||||
"pr:types":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['index.d.ts', 'index.d.cts']
|
||||
|
||||
"pr:tests":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'test/**.js'
|
||||
|
||||
"pr:github-actions":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: '**.d.ts'
|
||||
|
||||
"pr:examples":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'examples/**.js'
|
||||
|
||||
"pr:ci":
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['bin/**', 'rollup.config.js']
|
||||
|
||||
"pr:feature":
|
||||
- head-branch: ['feature', 'feat']
|
||||
|
||||
"pr:fix":
|
||||
- head-branch: ['fix', 'bug']
|
||||
@@ -0,0 +1,19 @@
|
||||
name: "Pull Request Labeler"
|
||||
on:
|
||||
pull_request_target:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
prs:
|
||||
required: false
|
||||
description: "pr number"
|
||||
|
||||
jobs:
|
||||
labeler:
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/labeler@v5
|
||||
with:
|
||||
pr-number: github.event.inputs.prs
|
||||
Reference in New Issue
Block a user