github suzuki-shunsuke/github-comment v3.1.0

latest releases: v6.3.0, v6.3.0-1, v6.2.1...
3 years ago

v3.0.1...v3.1.0
milestone

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

#134 #237

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.

Add -condition option to hide command

#245

Support to specify the condition with -condition option.

$ github-comment hide -condition 'Comment.Body contains "foo"'

Add vars to complement

#246 #247

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

Don't miss a new github-comment release

NewReleases is sending notifications on new releases.