Sign inSign up

yuyat/circle-gh-tee

By yuyat

•Updated over 6 years ago

Command to run a command in Circle CI and post its result to GitHub Pull Request

Image
0

394

yuyat/circle-gh-tee repository overview

⁠Circle GH Tee

Command to run a command in Circle CI and post its result to GitHub Pull Request

⁠Usage

$ circle-gh-tee [OPTIONS] -- <COMMAND>...
⁠Required environment variable
  • GITHUB_ACCESS_TOKEN
    • Personal access token of GitHub
    • Required scope
      • repo: Full control of private repositories

Other variables are assumed to be set by Circle CI

  • CIRCLE_PROJECT_USERNAME
  • CIRCLE_PROJECT_REPONAME
  • CI_PULL_REQUEST
⁠Options
  • --exit-zero-template <TEMPLATE>
    • Comment template used when exit code is zero
  • --exit-non-zero-template <TEMPLATE>
    • Comment template used when exit code is non-zero
⁠Template variables
  • {{full_command}}
    • Executed command
    • e.g. make test
  • {{result}}
    • Output of the executed command
    • Both of stdout and stderr are merged
  • {{exit_status}}
    • Exit status of the executed command
    • e.g 0

Tag summary

Content type

Image

Digest

Size

293.9 MB

Last updated

over 6 years ago

docker pull yuyat/circle-gh-tee