Features
#134 #237 support to configure complement
#245 add -condition
option to hide command
#246 #247 add vars to complement
#281 #277 add the -var-file option to the post and exec command
Support to configure complement
Support other platforms with complement
configuration.
complement:
pr:
- type: envsubst
value: '${GOOGLE_CLOUD_BUILD_PR_NUMBER}'
org:
- type: envsubst
value: 'suzuki-shunsuke'
repo:
- type: envsubst
value: '${GOOGLE_CLOUD_BUILD_REPO_NAME}'
sha1:
- type: envsubst
value: '${GOOGLE_CLOUD_BUILD_COMMIT_SHA}'
The following types are supported.
envsubst
: drone/envsubst#EvalEnvtemplate
: Go's text/template with sprig functions
Add -condition
option to hide command
Support to specify the condition with -condition
option.
$ github-comment hide -condition 'Comment.Body contains "foo"'
Add vars to complement
complement:
vars:
yoo: # the variable "yoo" is added to "vars"
- type: template
value: '{{env "YOO"}}'
add the -var-file option to the post and exec command
$ github-comment post -var-file content:foo.txt
$ github-comment exec -var-file content:foo.txt -- echo hello