1.7.8 • Published 4 months ago

git-digger v1.7.8

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Digger CLI

GitHub tag (latest by date) NPM Version

A program for extracting 'contribution data' from git repositories into JSON files.

Installation

You can install the tool using any NPM-like system.

Local Example

npm i -D git-digger # this will install it into a project as a dev dependency

npx digger current-contribution-data $(pwd) # You can use npx to run a project's programs easily

Global Example

npm i -g git-digger # this will install it globally into npm

digger current-contribution-data $(pwd) # Now it should be available via NPM's path on your shell.

Commands

CurrentContributionData

The currentContributionData task will collect the most recent contribution to the repository.

The most recent contribution is calculated by looking for the most recent, non-HEAD tag, and then including every commit after that until the current HEAD.

Output

The contribution data JSON is created at ./currentContributionData.json.

It will include all fields listed here.

Any "Instant" in the specification is an ISO 8601 date-time. Any Duration is an ISO 8601 duration.

AllContributionData

The allContributionData task will collect all the contributions in the git repository.

This is calculated by subdividing the repository by its tags, and each section becomes a contribution.

Output

The contribution data JSON is created at ./allContributionData.json, as a JSON array.

It will include all fields listed here.

Any "Instant" in the specification is an ISO 8601 date-time. Any Duration is an ISO 8601 duration.

Fields of Interest

Authors

This will include all authors listed on the commit, including committer, author, and co-authors.

Story ID

This is parsed out of the commit message by looking for square bracketed text that does not match semver.

eg: commit message: [Cowdog-42] [patch] I did that thing produces: { storyId: "Cowdog-42" }

Semver

This is parsed out of the commit message by looking for the strings "major", "minor", "patch", or "none".

eg: commit message: [Cowdog-42] [patch] I did that thing produces: { semver: "Patch" }

Label

All contributions from one repository will share the same label. By default, this will be the Gradle project's name.

This can be overridden by argument:

digger currentContributionData --label SomethingMoreExciting ${pwd}

Ease

This is parsed out of the commit message by looking for a number between one and five, wrapped in dashes.

This field is inspired by https://www.scrumexpert.com/knowledge/measuring-joy-for-software-developers/

eg: commit message: -3- I did that thing produces: { ease: 3 }

Help

For a full listing of the available options in the program, please use the built-in help command.

digger --help
1.6.4

5 months ago

1.6.3

5 months ago

1.6.2

5 months ago

1.6.1

5 months ago

1.6.0

5 months ago

1.7.8

4 months ago

1.7.7

4 months ago

1.7.5

4 months ago

1.7.4

4 months ago

1.6.5

4 months ago

1.5.30

7 months ago

1.5.32

7 months ago

1.5.31

7 months ago

1.5.34

6 months ago

1.5.33

7 months ago

1.5.36

6 months ago

1.5.35

6 months ago

1.5.38

5 months ago

1.5.37

6 months ago

1.5.39

5 months ago

1.5.43

5 months ago

1.5.42

5 months ago

1.5.45

5 months ago

1.5.44

5 months ago

1.7.2

4 months ago

1.7.0

4 months ago

1.5.27

7 months ago

1.5.29

7 months ago

1.5.28

7 months ago

1.5.26

8 months ago

1.5.25

9 months ago

1.4.20

10 months ago

1.4.22

10 months ago

1.4.21

10 months ago

1.4.24

10 months ago

1.4.23

10 months ago

1.4.26

10 months ago

1.4.25

10 months ago

1.4.28

10 months ago

1.4.27

10 months ago

1.4.29

10 months ago

1.5.9

10 months ago

1.4.31

10 months ago

1.5.8

10 months ago

1.4.30

10 months ago

1.5.7

10 months ago

1.5.6

10 months ago

1.5.5

10 months ago

1.5.4

10 months ago

1.5.3

10 months ago

1.5.2

10 months ago

1.5.0

10 months ago

1.5.10

9 months ago

1.5.12

9 months ago

1.5.11

9 months ago

1.5.14

9 months ago

1.5.13

9 months ago

1.5.16

9 months ago

1.5.15

9 months ago

1.5.18

9 months ago

1.5.17

9 months ago

1.5.19

9 months ago

1.5.21

9 months ago

1.5.20

9 months ago

1.5.23

9 months ago

1.5.22

9 months ago

1.4.13

10 months ago

1.5.24

9 months ago

1.4.15

10 months ago

1.4.14

10 months ago

1.4.17

10 months ago

1.4.16

10 months ago

1.4.19

10 months ago

1.4.18

10 months ago

1.4.11

10 months ago

1.4.10

10 months ago

1.4.9

10 months ago

1.4.8

10 months ago

1.4.7

10 months ago

1.4.6

11 months ago

1.4.5

11 months ago

1.4.4

11 months ago

1.4.3

11 months ago

1.4.1

11 months ago

1.4.0

11 months ago

1.2.36

11 months ago

0.0.0

11 months ago

1.3.0

11 months ago

1.2.34

11 months ago

1.2.33

11 months ago

1.2.32

11 months ago

1.2.31

11 months ago

1.2.30

11 months ago

1.2.29

11 months ago

1.2.28

11 months ago

1.2.27

11 months ago

1.2.26

11 months ago

1.2.25

11 months ago

1.2.24

11 months ago

1.2.23

11 months ago

1.2.22

11 months ago

1.2.21

11 months ago

1.2.20

11 months ago

1.2.19

11 months ago

1.2.18

11 months ago

1.2.17

11 months ago

1.2.16

11 months ago

1.2.15

11 months ago

1.2.14

11 months ago

1.2.13

11 months ago

1.2.12

11 months ago

1.2.11

11 months ago

1.2.10

11 months ago

1.2.9

11 months ago

1.2.8

11 months ago

1.2.7

11 months ago

1.2.6

11 months ago

1.2.5

11 months ago

1.2.4

11 months ago

1.2.3

11 months ago

1.2.2

11 months ago

1.2.1-SNAPSHOT

11 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.1.26

11 months ago