Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

yuya-takeyama/circle-gh-tee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived: Use github-comment instead.

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published