2
0
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:
Dmitriy Mozgovoy
2025-04-24 17:37:56 +03:00
committed by GitHub
parent f7a3b5e0f7
commit c3aba3d8f7
2 changed files with 53 additions and 0 deletions
+34
View File
@@ -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']
+19
View File
@@ -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