Coder Social home page Coder Social logo

provider-git's Introduction

๐Ÿ”€ provider-git

CI Go Report Card PkgGoDev

The git provider for go-semantic-release.

This plugin will make sure that the continuous integration environment conditions are met. Namely that the release is happening on the correct branch.

Usage

To use this plugin you need to include the following block in your .semrelrc file.

{
    "plugins": {
        "provider": {
            "name": "git",
            // Options can be omitted if you want to use the defaults.
            // See the section on configuration below.
            "options": {
                // Put configuration options here
            }
        }
    }
}

Configuration

Name Default Value Description
default_branch master The branch where deployments should happen.
tagger_name semantic-release The name of the user creating the tag.
tagger_email [email protected] The email address of the user creating the tag.
remote_name The name of the remote to push to.
auth (Depends on origin URL) The authentication type to use (basic, ssh)
auth_username git The name of the user to use for authentication.
auth_password The password to use for basic auth or the SSH key.
auth_private_key The path to an SSH private key file.
git_path . The path to the Git repository

Authentication

Automatic

If you don't pick a specific authentication mechanism then an authentication mechanism will be picked based on the URL of the Git remote. Under the covers go-git is responsible for determining how to perform this kind of authentication.

Basic

Basic authentication uses a username and password pair to perform authentication over HTTP/HTTPS.

For this method you'll need to set auth_username and auth_password.

SSH

SSH authentication uses an SSH private key to authenticate with the Git remote ove ran SSH connection.

For this method you'll need to set auth_username and auth_private_key. If your private key uses a password then you'll also need to set auth_password.

Licence

The MIT License (MIT)

Copyright ยฉ 2020 Christoph Witzko

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.