Command to run a command in Circle CI and post its result to GitHub Pull Request
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
images
src
.dockerignore
.gitignore
Cargo.lock
Cargo.toml
Dockerfile
README.md

README.md

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