-
Notifications
You must be signed in to change notification settings - Fork 531
42 lines (39 loc) · 1.59 KB
/
pr-validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "Fluid PR Validation"
on:
pull_request:
types:
- opened # PR is created
- synchronize # commits added to PR
- reopened # closed PR re-opened
- edited # title or body edited, or base branch changed
branches:
- main
- next
- release/**/*
permissions:
pull-requests: write
jobs:
validate-codeowners:
name: Validate CODEOWNERS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
with:
persist-credentials: false
- uses: mszostok/codeowners-validator@7f3f5e28c6d7b8dfae5731e54ce2272ca384592f # ratchet:mszostok/[email protected]
with:
github_access_token: "${{ secrets.GITHUB_TOKEN }}"
checks: "files,duppatterns,syntax"
# This job checks that PR template placeholder content has been removed from the PR body.
placeholder-content:
name: PR template placeholder content
runs-on: ubuntu-latest
steps:
- uses: sitezen/pr-comment-checker@f1e956fac00c6d1163d15841886ae80b7ae58ecb # ratchet:sitezen/[email protected]
with:
pr_description_should_not_contain: |
Feel free to remove or alter parts of this template that do not offer value for your specific change
wrong_pr_description_message: |
Your PR description contains placeholder content from the PR template. Remove or replace the placeholder
content. More information at:
https://github.com/microsoft/FluidFramework/wiki/Commit-message-style#pr-template-content