dev: enable auto-labels for PRs (labeler)

This commit is contained in:
Oleg Agafonov 2024-02-18 17:51:52 +04:00
parent 05f987b365
commit 5013558c8c
2 changed files with 23 additions and 1 deletions

View file

@ -1,4 +1,4 @@
name: "Pull Request Labeler"
name: "Pull Request Labeler (auto)"
on:
- pull_request_target

22
.github/workflows/labeler-manual.yml vendored Normal file
View 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 }}