Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion raycicmd/rayci_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var (
triggerStepDropKeys = []string{"tags"}

commandStepAllowedKeys = []string{
"command", "commands", "priority", "parallelism", "if",
"command", "commands", "priority", "parallelism", "if", "skip",
"label", "name", "key", "depends_on", "soft_fail", "matrix",
"allow_dependency_failure", "concurrency", "concurrency_group",
"timeout_in_minutes",
Comment on lines +49 to 52
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability and readability, consider sorting these keys alphabetically. A sorted list makes it easier to check for the existence of a key and to avoid adding duplicates in the future.

Suggested change
"command", "commands", "priority", "parallelism", "if", "skip",
"label", "name", "key", "depends_on", "soft_fail", "matrix",
"allow_dependency_failure", "concurrency", "concurrency_group",
"timeout_in_minutes",
"allow_dependency_failure", "command", "commands", "concurrency", "concurrency_group",
"depends_on", "if", "key", "label", "matrix",
"name", "parallelism", "priority", "skip", "soft_fail",
"timeout_in_minutes",

Expand Down