github: add pr-validation and label-automation workflows
Some checks are pending
Build alsa-lib / fedora_latest_build (push) Waiting to run
Build alsa-lib / ubuntu_last_build (push) Waiting to run

https://github.com/alsa-project/github-workflows

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2026-05-27 16:06:51 +02:00
parent 33c9949e75
commit ef115c4e59
3 changed files with 64 additions and 1 deletions

35
.github/workflows/pr-validation.yml vendored Normal file
View file

@ -0,0 +1,35 @@
# Example workflow for automatic Signed-off-by validation
# Place this file in your repository at: .github/workflows/pr-validation.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: PR Validation
on:
pull_request:
types: [opened, synchronize, reopened]
pull_request_target:
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
pr_number:
description: 'Pull Request number to validate'
required: true
type: number
jobs:
validate-commits:
uses: alsa-project/github-workflows/.github/workflows/sob-validator.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'
sob-label: 'signed off by'
pr-number: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.pr_number) || '' }}
secrets: inherit