Reusable GitHub Actions workflows for pull request checks.
Call this workflow from your repository:
on:
pull_request:
types: [opened, synchronize, reopened, edited, assigned, unassigned, labeled, unlabeled]
jobs:
checks:
uses: "glpi-project/plugin-pr-workflows/.github/workflows/pullrequest-workflow.yml@v1"Important: all types listed above must be present:
edited— re-runs checks when the PR description is updated (e.g. ticking checklist items)assigned/unassigned— re-runs checks when assignees changelabeled/unlabeled— re-runs checks when labels change
Fails if any checklist item (- [ ]) remains unchecked in the PR description.
Fails if the PR author is not in the assignees list. Re-runs on every assignee change (assigned/unassigned events).
Fails if no label has been applied to the PR. Re-runs on every label change (labeled/unlabeled events).
Fails if CHANGELOG.md has not been modified in the PR.