-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yml
41 lines (40 loc) · 1.67 KB
/
action.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
name: PR description checker
description: Checks if PR description is present, in case of templated description it checks whether it is filled in or not
inputs:
repo-token:
description: The GITHUB_TOKEN secret
required: true
exempt-labels:
description: PR labels that should be skipped, comma separated
default: ""
template-path:
description: Path to PR template if custom
default: "./.github/PULL_REQUEST_TEMPLATE.md"
comment:
description: Whether to add comment to PR
default: true
comment-empty-description:
description: Comment to use when empty description
default: PR description is empty, please add some valid description
comment-template-not-filled:
description: Comment to use when template not filled in
default: PR description is too short and seems to not fulfill PR template, please fill in
comment-github-token:
description: Github token to use while creating comment
default: ""
runs:
using: composite
steps:
- shell: bash
run: $GITHUB_ACTION_PATH/bin/description-checker
env:
INPUT_PR-NUMBER: ${{ github.event.number }}
INPUT_REPO-OWNER: ${{ github.event.repository.owner.login }}
INPUT_REPO-NAME: ${{ github.event.repository.name }}
INPUT_REPO-TOKEN: ${{ inputs.repo-token }}
INPUT_EXEMPT-LABELS: ${{ inputs.exempt-labels }}
INPUT_TEMPLATE-PATH: ${{ inputs.template-path }}
INPUT_COMMENT: ${{ inputs.comment }}
INPUT_COMMENT-EMPTY-DESCRIPTION: ${{ inputs.comment-empty-description }}
INPUT_COMMENT-TEMPLATE-NOT-FILLED: ${{ inputs.comment-template-not-filled }}
INPUT_COMMENT-GITHUB-TOKEN: ${{ inputs.comment-github-token }}