feat(schedule): add option to create a scheduled pipeline with variables
Description
add option to create a scheduled pipeline with variables:
> glab schedule create --cron "* * * * *" --description "foo" --ref "main" --variable "boo:bar"
Created schedule
Related Issues
Resolves #7429 (closed)
How has this been tested?
#good case
> glab schedule create --cron "* * * * *" --description "foo" --ref "main" --variable "boo:bar"
Created schedule
# bad case
> glab schedule create --cron "* * * * *" --description "foo" --ref "main" --variable "boobar"
Invalid format for --variable: boobar
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap