-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
45 lines (44 loc) · 1.59 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
42
43
44
45
name: 'issue-validator'
description: 'auto close issue if it does not meet the conditions'
author: 'Okabe-Junya'
branding:
icon: 'alert-triangle'
color: 'gray-dark'
inputs:
title:
description: 'title for the issue/pull request'
required: false
default: ''
body:
description: 'body for the issue/pull request'
required: false
default: ''
title-regex-flags:
description: 'regex flags for title. if you want to use regex, you must set title and title-regex-flags: "true"'
required: false
default: 'false'
body-regex-flags:
description: 'regex flags for body. if you want to use regex, you must set body and body-regex-flags: "true"'
required: false
default: 'false'
github-token:
description: 'token for github'
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
issue-type:
description: 'validate for issue or pull request. if you want to validate pull request, you must set issue-type: "pull_request". Both issue and pull request are validated, if you set issue-type: "both". default is "issue"'
required: false
default: 'issue'
is-auto-close:
description: 'auto close issue if it does not meet the conditions'
required: false
default: 'false'
is-match:
description: 'when you set "true", issue/pull request is warned/closed if it does not meet the conditions. when you set "false", issue/pull request is warned/closed if it meets the conditions'
required: false
default: 'false'
outputs:
result:
description: 'result of validation'
runs:
using: 'node20'
main: 'dist/index.js'