mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-05-29 21:37:51 -04:00
https://github.com/alsa-project/github-workflows Signed-off-by: Jaroslav Kysela <perex@perex.cz>
29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
# Example workflow for using the label commenter
|
|
# Place this file in your repository at: .github/workflows/label-automation.yml
|
|
#
|
|
# You also need to create .github/label-descriptions.yml in your repository
|
|
# Example config: https://github.com/alsa-project/github-workflows/blob/main/config/label-descriptions.yml
|
|
|
|
name: Label Automation
|
|
|
|
on:
|
|
issues:
|
|
types: [labeled, unlabeled]
|
|
pull_request:
|
|
types: [labeled, unlabeled]
|
|
pull_request_target:
|
|
types: [labeled, unlabeled]
|
|
|
|
jobs:
|
|
handle-label:
|
|
uses: alsa-project/github-workflows/.github/workflows/label-commenter.yml@main
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
issues: write
|
|
with:
|
|
# Path to your local config file OR URL to remote config (required)
|
|
config-path: 'https://raw.githubusercontent.com/alsa-project/github-workflows/main/config/label-descriptions.yml'
|
|
# Local file example: '.github/label-descriptions.yml'
|
|
# Remote URL example: 'https://raw.githubusercontent.com/alsa-project/github-workflows/main/config/label-descriptions.yml'
|
|
secrets: inherit
|