Skip to content

Commit b00d12c

Browse files
authored
Merge pull request #485 from eifinger/support-branding-color-black
Support branding.color "black"
2 parents 6433667 + 1d2ba75 commit b00d12c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

docs/checks.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2830,7 +2830,7 @@ branding:
28302830
# ERROR: Invalid icon name
28312831
icon: dog
28322832
# ERROR: Unsupported icon color
2833-
color: black
2833+
color: gray-white
28342834
28352835
runs:
28362836
# ERROR: Node.js runtime version is too old
@@ -2867,7 +2867,7 @@ test.yaml:8:15: incorrect icon name "dog" at branding.icon in metadata of "My ac
28672867
|
28682868
8 | - uses: ./.github/actions/my-invalid-action
28692869
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2870-
test.yaml:8:15: incorrect color "black" at branding.icon in metadata of "My action" action at "/Users/rhysd/.go/src/github.com/rhysd/actionlint/.github/actions/my-invalid-action/action.yml". see the official document to know the exhaustive list of supported colors: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#brandingcolor [action]
2870+
test.yaml:8:15: incorrect color "gray-white" at branding.icon in metadata of "My action" action at "/Users/rhysd/.go/src/github.com/rhysd/actionlint/.github/actions/my-invalid-action/action.yml". see the official document to know the exhaustive list of supported colors: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#brandingcolor [action]
28712871
|
28722872
8 | - uses: ./.github/actions/my-invalid-action
28732873
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

rule_action.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
// https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#brandingcolor
1515
var BrandingColors = map[string]struct{}{
1616
"white": {},
17+
"black": {},
1718
"yellow": {},
1819
"blue": {},
1920
"green": {},

testdata/examples/.github/actions/my-invalid-action/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ branding:
88
# ERROR: Invalid icon name
99
icon: dog
1010
# ERROR: Unsupported icon color
11-
color: black
11+
color: gray-white
1212

1313
runs:
1414
# ERROR: Node.js runtime version is too old
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/test\.yaml:8:15: description is required in metadata of "My action" action at ".+(\\\\|/)my-invalid-action(\\\\|/)action\.yml" \[action\]/
22
/test\.yaml:8:15: incorrect icon name "dog" at branding\.icon in metadata of "My action" action at ".+(\\\\|/)my-invalid-action(\\\\|/)action\.yml"\. see the official document to know the exhaustive list of supported icons: https://.+ \[action\]/
3-
/test\.yaml:8:15: incorrect color "black" at branding\.icon in metadata of "My action" action at ".+(\\\\|/)my-invalid-action(\\\\|/)action\.yml"\. see the official document to know the exhaustive list of supported colors: https://.+ \[action\]/
3+
/test\.yaml:8:15: incorrect color "gray-white" at branding\.icon in metadata of "My action" action at ".+(\\\\|/)my-invalid-action(\\\\|/)action\.yml"\. see the official document to know the exhaustive list of supported colors: https://.+ \[action\]/
44
/test\.yaml:8:15: invalid runner name \"node14\" at runs\.using in \"My action\" action defined at \".+(\\\\|/)actions(\\\\|/)my-invalid-action\"\. valid runners are \"composite\", \"docker\", and \"node20\"\. see https://.+ \[action\]/
55
/test\.yaml:8:15: file "this-file-does-not-exist\.js" does not exist in ".+(\\\\|/)my-invalid-action"\. it is specified at "main" key in "runs" section in "My action" action \[action\]/
66
/test\.yaml:8:15: "env" is not allowed in "runs" section because "My action" is a JavaScript action\. the action is defined at ".+(\\\\|/)my-invalid-action" \[action\]/

0 commit comments

Comments
 (0)