set-commit-status

command module
v0.0.0-...-b4b5941 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

set-commit-status

A simple Go program to set commit status. It uses go-scm to support multiple Git providers(GitHub, GitLab, etc).

Usage

  1. Run it locally
$ go build -o set-commit-status .

$ ./set-commit-status --sha <commit_sha> --url <git_repo_url> --token <token> --status <commit_status> --context <commit_status>
  1. Tekton

Inlcude it as part of your Tekton pipeline and set the commit status based on PipelineRun status. An example task and taskrun can be found in tekton.

$ kubectl create secret generic git-host-access-token --from-literal=token=<token>

$ kubectl apply -f tekton/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL