pr-bullet

command module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 1 Imported by: 0

README

pr-bullet

pr-bullet is a tool for copying pull request to multiple repositories.

Usage

First, create original pull request ( ex. https://github.com/k1LoW/my-bullet/pull/3 ).

Then, specify the URL of the pull request and the repository where it is to be copied.

$ pr-bullet https://github.com/k1LoW/my-bullet/pull/3 k1LoW/tbls k1LoW/ndiag
Original pull request:
  Title ... Add allow-auto-merge label action using ghdag
  URL   ... https://github.com/k1LoW/my-bullet/pull/3
  Files ... 34
Target repositories:
  k1LoW/tbls, k1LoW/ndiag
Do you want to create pull requests? (y/n) [y]: y

Copying k1LoW/my-bullet pull request #3 to k1LoW/tbls ... https://github.com/k1LoW/tbls/pull/999 as draft
Copying k1LoW/my-bullet pull request #3 to k1LoW/ndiag ... https://github.com/k1LoW/ndiag/pull/333 as draft
$
Required Environment variables
Environment variable Description Default
GITHUB_TOKEN Personal access token -
GITHUB_API_URL API URL https://api.github.com

Install

deb:

Use dpkg-i-from-url

$ export PR-BULLET_VERSION=X.X.X
$ curl -L https://git.io/dpkg-i-from-url | bash -s -- https://github.com/k1LoW/pr-bullet/releases/download/v$PR-BULLET_VERSION/pr-bullet_$PR-BULLET_VERSION-1_amd64.deb

RPM:

$ export PR-BULLET_VERSION=X.X.X
$ yum install https://github.com/k1LoW/pr-bullet/releases/download/v$PR-BULLET_VERSION/pr-bullet_$PR-BULLET_VERSION-1_amd64.rpm

apk:

Use apk-add-from-url

$ export PR-BULLET_VERSION=X.X.X
$ curl -L https://git.io/apk-add-from-url | sh -s -- https://github.com/k1LoW/pr-bullet/releases/download/v$PR-BULLET_VERSION/pr-bullet_$PR-BULLET_VERSION-1_amd64.apk

homebrew tap:

$ brew install k1LoW/tap/pr-bullet

manually:

Download binary from releases page

go get:

$ go get github.com/k1LoW/pr-bullet

docker:

$ docker pull ghcr.io/k1low/pr-bullet:latest

Documentation

Overview

Copyright © 2021 Ken'ichiro Oyama <k1lowxb@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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