-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
34 lines (29 loc) · 1.11 KB
/
action.yml
File metadata and controls
34 lines (29 loc) · 1.11 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
# GitHub Action Metadata
# https://docs.github.com/en/actions/reference/metadata-syntax-reference
# https://docs.github.com/en/actions/tutorials/creating-a-javascript-action
name: "PR Codename"
author: "Konstantin Tarkus"
description: "Generate deterministic, human-readable codenames from numbers (same number always produces the same codename)"
inputs:
number:
description: "Number to convert to codename (defaults to PR number in pull_request events)"
required: false
template:
description: "Output template with placeholders. Supports: {codename}, {number}"
required: false
token:
description: "GitHub token for API access (defaults to GITHUB_TOKEN environment variable)"
required: false
outputs:
codename:
description: "The deterministic codename (e.g., 'london', 'paris') - same number always produces same result"
number:
description: "The number used to generate the codename"
formatted:
description: "The result of applying the template (only available when template input is provided)"
runs:
using: "node20"
main: "dist/index.js"
branding:
icon: "hash"
color: "purple"