1.7.97 • Published 3 years ago

gally v1.7.97

Weekly downloads
1,090
License
MIT
Repository
github
Last release
3 years ago

Gally aka Git-Ally

Build Status Test Coverage Dependabot Status Dependencies NPM Downloads Semantic-Release Gardener Gitter

Git-Ally - Automation around Github.com Repository Management

Install

$ npm i -g gally

Github Credentials

One will be prompted to enter a personal github token that will then be stored as plain text on disk.

If an environment variable GH_TOKEN is present and credentials are not set, the environment variable is used and no prompt is displayed. Will never prompt if running in CI.

Contents of .gally.json

To create a config template run ga init. The configuration is an object with the following top level keys.

defaultBranch

Type: string The default branch for the github repository.

contribBranch

Type: string The branch used as target for pull requests. Defaults to dev.

repository.url

Type: string The main github repository of this project.

protection

Type: object Define protection definition as entries in the object. Key names can be freely chosen, values have to be defined according to the github api docs. Can use "@" key to extend from other protections.

branches

Type: object Define branch names as keys in this object, mapping to their configuration.

Configurations are objects with the following keys: protection (string) needs to reference a protection in the protection object, or null if not protection is desired, create (boolean) will determine if the branch should be created if not found in the repository. New branches are created using the default branch as a base.

Can define prefix matching by appending a star to the name. Prefix matching currently only supports an empty configuration.

Cli Commands

All commands are available as ga or gally.

pr branch

Open PR Url from origin/CURRNET_BRANCH to remote upstream/TARGET_BRANCH with

$ ga pr [branch]

where branch is the target branch (defaults to dev).

approve remote \<prId> condition

Approve PR. The remote defaults to upstream for

$ ga approve <prId>

Can define a custom remote if so desired.

Condition is a url encoded string that is checked against the branch information. E.g. to only apply to prs that target the dev branch and are open, one would use

$ ga approve <prId> --condition "base.ref=dev&state=open" 

merge remote \<prId> condition

Merge PR. The remote defaults to upstream for

$ ga merge <prId>

Can define a custom remote if so desired.

See approve cmd for condition information.

promote remote \<branch>

Create PR from upstream/INPUT_BRANCH to "upstream" branch upstream/BRANCH with

$ ga promote <branch>

where the upstream branch is defined in the configuration file under "upstream".

Can define a custom remote if so desired.

When an unknown branch or a branch without an upstream is defined, a warning is printed. This makes is easier to use to create automatic staging prs using CI.

init

Create a new .gally.json file by running

$ ga init

For details on how to adjust the configuration, see the corresponding section.

sync remote

Synchronize config .gally.json to remote github repository defined in config or using remote if passed.

1.7.96

3 years ago

1.7.97

3 years ago

1.7.95

3 years ago

1.7.94

3 years ago

1.7.93

3 years ago

1.7.92

3 years ago

1.7.90

3 years ago

1.7.91

3 years ago

1.7.84

3 years ago

1.7.85

3 years ago

1.7.86

3 years ago

1.7.87

3 years ago

1.7.88

3 years ago

1.7.89

3 years ago

1.7.83

3 years ago

1.7.82

3 years ago

1.7.81

3 years ago

1.7.80

3 years ago

1.7.79

3 years ago

1.7.78

3 years ago

1.7.77

3 years ago

1.7.76

3 years ago

1.7.75

3 years ago

1.7.74

3 years ago

1.7.73

3 years ago

1.7.72

3 years ago

1.7.71

3 years ago

1.7.70

3 years ago

1.7.69

4 years ago

1.7.68

4 years ago

1.7.67

4 years ago

1.7.66

4 years ago

1.7.65

4 years ago

1.7.64

4 years ago

1.7.63

4 years ago

1.7.62

4 years ago

1.7.61

4 years ago

1.7.60

4 years ago

1.7.59

4 years ago

1.7.57

4 years ago

1.7.58

4 years ago

1.7.56

4 years ago

1.7.54

4 years ago

1.7.55

4 years ago

1.7.53

4 years ago

1.7.52

4 years ago

1.7.51

4 years ago

1.7.50

4 years ago

1.7.49

4 years ago

1.7.47

4 years ago

1.7.48

4 years ago

1.7.46

4 years ago

1.7.45

4 years ago

1.7.44

4 years ago

1.7.43

4 years ago

1.7.42

4 years ago

1.7.41

4 years ago

1.7.40

4 years ago

1.7.39

4 years ago

1.7.38

4 years ago

1.7.37

4 years ago

1.7.36

4 years ago

1.7.35

4 years ago

1.7.34

4 years ago

1.7.33

4 years ago

1.7.32

4 years ago

1.7.31

4 years ago

1.7.30

4 years ago

1.7.29

4 years ago

1.7.28

4 years ago

1.7.27

4 years ago

1.7.26

4 years ago

1.7.25

5 years ago

1.7.24

5 years ago

1.7.23

5 years ago

1.7.22

5 years ago

1.7.21

5 years ago

1.7.20

5 years ago

1.7.19

5 years ago

1.7.18

5 years ago

1.7.17

5 years ago

1.7.16

5 years ago

1.7.15

5 years ago

1.7.14

5 years ago

1.7.13

5 years ago

1.7.12

5 years ago

1.7.11

5 years ago

1.7.10

5 years ago

1.7.9

5 years ago

1.7.8

5 years ago

1.7.7

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.11

6 years ago

1.6.10

6 years ago

1.6.9

6 years ago

1.6.8

6 years ago

1.6.7

6 years ago

1.6.6

6 years ago

1.6.5

6 years ago

1.6.4

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago