checkout-semaphoreci2

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

README

= Checkout SemaphoreCI2

`checkout-semaphoreci2` is a Go tool that help to manage checkout pull request from fork.

== Description

=== Environment Variables

* `SEMAPHORE_GIT_URL`: provided by Semaphore
* `SEMAPHORE_GIT_BRANCH`: provided by Semaphore
* `SEMAPHORE_GIT_DIR`: provided by Semaphore
* `SEMAPHORE_GIT_SHA`: provided by Semaphore
* `GITHUB_TOKEN`: must be provided by the user

=== CLI

[source, bash]
----
Checkout SemaphoreCI

Usage: checkout-semaphoreci2 [flags] <command> [<arguments>]

Use "checkout-semaphoreci2 <command> --help" for help on any command.

Commands:
	version                                            Display the version.

Flag's usage: checkout-semaphoreci2 [--flag=flag_argument] [-f[flag_argument]] ...     set flag_argument to flag(s)
          or: checkout-semaphoreci2 [--flag[=true|false| ]] [-f[true|false| ]] ...     set true/false to boolean flag(s)

Flags:
    --branch         The name of the GitHub branch that is used in the current job.
    --directory      Name of the directory that contains the files of the GitHub repository of the
                     current Semaphore 2.0 project
    --githubtoken    Github Token
    --owner          Repository owner
    --repo           Repository name
    --required       Required elements                                                             (default "false")
    --required.label Required label
    --required.pr    PR required                                                                   (default "false")
    --sha            The current revision of code that the pipeline is using.
    --url            The URL of the GitHub repository used in the current Semaphore 2.0 project.
-h, --help           Print Help (this message) and exit
----

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