mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 22:57:50 +03:00
**Description**: Add a new workflow to check the PR formatting to ensure consistency on PR titles. We can also use this for semantic release versioning later, if we so desire. **Related Issue(s)**: Implements first portion of #327 --------- Signed-off-by: Andrew Brandt <brandt.andrew89@gmail.com>
27 lines
536 B
YAML
27 lines
536 B
YAML
name: "PR Formatting"
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- edited
|
|
|
|
permissions:
|
|
statuses: write
|
|
|
|
jobs:
|
|
title-check:
|
|
name: Title Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Check PR Title
|
|
uses: amannn/action-semantic-pull-request@v6
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|