Centralised Github Actions to be reused for Distribute Aid.
This GitHub Action enforces our naming convention for Pull Request titles, links the Kanban Issue with the PR and applies labels according to the PR type in the title.
| name | description | required | default |
|---|---|---|---|
github-token |
GitHub token to use for authentication |
true |
N/A |
name: PR Title Check
on:
pull_request_target:
types: [opened, edited, reopened, synchronize]
jobs:
check-title:
runs-on: ubuntu-latest
steps:
- name: Validate PR title and link to Issue
uses: distributeaid/centralised-github-actions/.github/actions/pr-title-check-linking
with:
github-token: ${{ secrets.GITHUB_TOKEN }}