mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
30 lines
968 B
YAML
30 lines
968 B
YAML
name: "Lint PR"
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, edited, reopened, synchronize]
|
|
|
|
# IMPORTANT: No checkout actions, scripts, or builds should be added to this workflow. Permissions should always be used
|
|
# with extreme caution. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
|
|
permissions: {}
|
|
|
|
# PR updates can happen in quick succession leading to this
|
|
# workflow being trigger a number of times. This limits it
|
|
# to one run per PR.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
validate:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
name: Validate PR Title
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: thehanimo/pr-title-checker@7fbfe05602bdd86f926d3fb3bccb6f3aed43bc70 # v1.4.3
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
configuration_path: ".github/pr-title-checker-config.json"
|