mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
dev: enable auto-labels for PRs (labeler)
This commit is contained in:
parent
05f987b365
commit
5013558c8c
2 changed files with 23 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: "Pull Request Labeler"
|
name: "Pull Request Labeler (auto)"
|
||||||
on:
|
on:
|
||||||
- pull_request_target
|
- pull_request_target
|
||||||
|
|
||||||
22
.github/workflows/labeler-manual.yml
vendored
Normal file
22
.github/workflows/labeler-manual.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
name: "Pull Request Labeler (manual)"
|
||||||
|
on:
|
||||||
|
- workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
oldPRs:
|
||||||
|
description: 'PRs list to process'
|
||||||
|
required: true
|
||||||
|
default: '1, 2, 3'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
labeler:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- id: label-the-PR
|
||||||
|
uses: actions/labeler@v5
|
||||||
|
with:
|
||||||
|
configuration-path: '.github/labeler.yml'
|
||||||
|
pr-number: |
|
||||||
|
${{ github.event.inputs.oldPRs }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue