Repository navigation
Expand file tree
/
Copy pathaction.yaml
More file actions
38 lines (37 loc) · 1.98 KB
/
Copy pathaction.yaml
File metadata and controls
38 lines (37 loc) · 1.98 KB
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
name: 'Conventional Commit In Pull Requests'
author: 'step-security'
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
scope_types:
description: 'An array of valid scope types. If omitted, any scope is allowed. If given, include the empty scope with "". Example: ["login","signup","checkout","payment", ""]'
required: false
title_regex:
description: '(optional) Regular expression for custom title validation; disabled by default. Example: ''PROJECT-\d{2,5}$'' for trailing issue ticket, ''"^[^:]+: [A-Z]"'' for capitalized title'
required: false
ticket_key_regex:
description: '⚠️ DEPRECATED - Use "title_regex" instead. (optional) Regular expression for custom title validation; disabled by default. Example: ''PROJECT-\d{2,5}$'' for trailing issue ticket, ''"^[^:]+: [A-Z]"'' for capitalized title'
required: false
add_label:
description: 'Whether to add labels'
required: false
default: 'true'
add_scope_label:
description: 'Whether to add scope labels, such login for the title "fix(login): fix message in login page'
required: false
default: 'false'
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: 'docker'
image: 'docker://ghcr.io/step-security/pr-conventional-commits:v1.5.2@sha256:115e44e5b78ed430edac3ead0ad9c3a3ba664c5be24cf46f17d865957a444910' # v1.5.2
branding:
icon: "git-pull-request"
color: "blue"