mirror of
https://github.com/nasa/openmct.git
synced 2024-12-29 09:28:52 +00:00
4075a31d96
* PR Cop * Update the PR Template * address review comments
39 lines
924 B
YAML
39 lines
924 B
YAML
name: PRCop
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- labeled
|
|
- unlabeled
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- edited
|
|
pull_request_review_comment:
|
|
types:
|
|
- created
|
|
env:
|
|
LABELS: ${{ join( github.event.pull_request.labels.*.name, ' ' ) }}
|
|
jobs:
|
|
prcop:
|
|
runs-on: ubuntu-latest
|
|
name: Template Check
|
|
steps:
|
|
- name: Linting Pull Request
|
|
uses: makaroni4/prcop@v1.0.35
|
|
with:
|
|
config-file: '.github/workflows/prcop-config.json'
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
check-type-label:
|
|
name: Check type Label
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- if: contains( env.LABELS, 'type:' ) == false
|
|
run: exit 1
|
|
check-milestone:
|
|
name: Check Milestone
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- if: github.event.pull_request.milestone == null && contains( env.LABELS, 'no milestone' ) == false
|
|
run: exit 1
|