forked from ytanikin/pr-conventional-commits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
27 lines (26 loc) · 1.11 KB
/
action.yaml
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
name: 'Conventional Commit In Pull Requests'
description: 'Check that the PR title contains a valid task type and (optionally) a task number, and label the PR based on the task type'
inputs:
task_types:
description: 'An array of task types. Example: ["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
required: true
ticket_key_regex:
description: 'Regular expression to match issue number in PR title, by default does not validate. Example ^PROJECT-\d{2,5}$'
required: false
add_label:
description: 'Whether to add labels'
required: false
default: 'true'
token:
description: 'GitHub token for applying labels.'
required: false
default: ${{ github.token }}
custom_labels:
description: 'A JSON string mapping task types to custom label names. Example: {"feat": "feature", "fix": "fix", "docs": "documentation", "test": "test", "ci": "CI/CD", "refactor": "refactor", "perf": "performance", "chore": "chore", "revert": "revert", "wip": "WIP"}'
required: false
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: "git-pull-request"
color: "blue"