git-digger 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,106 @@
1
+ # Digger CLI
2
+
3
+ ![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/robertfmurdock/ze-great-tools?label=Release)
4
+ ![NPM Version](https://img.shields.io/npm/v/git-digger?label=npm%20git-digger)
5
+
6
+ A program for extracting 'contribution data' from git repositories into JSON files.
7
+
8
+ ## Installation
9
+
10
+ You can install the tool using any NPM-like system.
11
+
12
+ ### Local Example
13
+
14
+ ```bash
15
+ npm i -D git-digger # this will install it into a project as a dev dependency
16
+
17
+ npx digger current-contribution-data $(pwd) # You can use npx to run a project's programs easily
18
+ ```
19
+
20
+ ### Global Example
21
+
22
+ ```bash
23
+ npm i -g git-digger # this will install it globally into npm
24
+
25
+ digger current-contribution-data $(pwd) # Now it should be available via NPM's path on your shell.
26
+ ```
27
+
28
+ ## Commands
29
+
30
+ ### CurrentContributionData
31
+
32
+ The `currentContributionData` task will collect the most recent contribution to the repository.
33
+
34
+ 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.
35
+
36
+ #### Output
37
+
38
+ The contribution data JSON is created at `./currentContributionData.json`.
39
+
40
+ It will include all fields listed [here](../digger-json/src/commonMain/kotlin/com/zegreatrob/tools/digger/json/ContributionDataJson.kt).
41
+
42
+ Any "Instant" in the specification is an ISO 8601 date-time. Any Duration is an ISO 8601 duration.
43
+
44
+ ### AllContributionData
45
+
46
+ The `allContributionData` task will collect all the contributions in the git repository.
47
+
48
+ This is calculated by subdividing the repository by its tags, and each section becomes a contribution.
49
+
50
+ #### Output
51
+
52
+ The contribution data JSON is created at `./allContributionData.json`, as a JSON array.
53
+
54
+ It will include all fields listed [here](../digger-json/src/commonMain/kotlin/com/zegreatrob/tools/digger/json/ContributionDataJson.kt).
55
+
56
+ Any "Instant" in the specification is an ISO 8601 date-time. Any Duration is an ISO 8601 duration.
57
+
58
+ ## Fields of Interest
59
+
60
+ ### Authors
61
+
62
+ This will include all authors listed on the commit, including committer, author, and co-authors.
63
+
64
+ ### Story ID
65
+
66
+ This is parsed out of the commit message by looking for square bracketed text that does not match semver.
67
+
68
+ eg:
69
+ commit message: `[Cowdog-42] [patch] I did that thing`
70
+ produces: { storyId: "Cowdog-42" }
71
+
72
+ ### Semver
73
+
74
+ This is parsed out of the commit message by looking for the strings "[major]", "[minor]", "[patch]", or "[none]".
75
+
76
+ eg:
77
+ commit message: `[Cowdog-42] [patch] I did that thing`
78
+ produces: { semver: "Patch" }
79
+
80
+ ### Label
81
+
82
+ All contributions from one repository will share the same label. By default, this will be the Gradle project's name.
83
+
84
+ This can be overridden by argument:
85
+
86
+ ```bash
87
+ digger currentContributionData --label SomethingMoreExciting ${pwd}
88
+ ```
89
+
90
+ ### Ease
91
+
92
+ This is parsed out of the commit message by looking for a number between one and five, wrapped in dashes.
93
+
94
+ This field is inspired by https://www.scrumexpert.com/knowledge/measuring-joy-for-software-developers/
95
+
96
+ eg:
97
+ commit message: `-3- I did that thing`
98
+ produces: { ease: 3 }
99
+
100
+ ## Help
101
+
102
+ For a full listing of the available options in the program, please use the built-in help command.
103
+
104
+ ```bash
105
+ digger --help
106
+ ```
@@ -353,7 +353,7 @@
353
353
  return tmp;
354
354
  }
355
355
  initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
356
- initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithUtcOffset, WithDate, WithTime]);
356
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithTime, WithDate, WithUtcOffset]);
357
357
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
358
358
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
359
359
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
package/kotlin/bin/digger CHANGED
File without changes
@@ -38,7 +38,7 @@
38
38
  initMetadataForClass(Digger, 'Digger', Digger, CliktCommand);
39
39
  //endregion
40
40
  function Versions() {
41
- this.n2h_1 = '1.7.0';
41
+ this.n2h_1 = '1.7.2';
42
42
  }
43
43
  var Versions_instance;
44
44
  function Versions_getInstance() {
@@ -52,8 +52,8 @@
52
52
  var isFinite = kotlin_kotlin.$_$.rc;
53
53
  var isFinite_0 = kotlin_kotlin.$_$.qc;
54
54
  var toString_1 = kotlin_kotlin.$_$.t1;
55
- var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
56
55
  var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
56
+ var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
57
57
  var Companion_getInstance = kotlin_kotlin.$_$.g3;
58
58
  var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
59
59
  var Companion_getInstance_0 = kotlin_kotlin.$_$.h3;
@@ -90,7 +90,7 @@
90
90
  initMetadataForClass(JsonEncodingException, 'JsonEncodingException', VOID, JsonException);
91
91
  initMetadataForClass(Key, 'Key', Key);
92
92
  initMetadataForClass(DescriptorSchemaCache, 'DescriptorSchemaCache', DescriptorSchemaCache);
93
- initMetadataForClass(StreamingJsonEncoder, 'StreamingJsonEncoder', VOID, AbstractEncoder, [Encoder, CompositeEncoder, AbstractEncoder]);
93
+ initMetadataForClass(StreamingJsonEncoder, 'StreamingJsonEncoder', VOID, AbstractEncoder, [CompositeEncoder, Encoder, AbstractEncoder]);
94
94
  initMetadataForClass(WriteMode, 'WriteMode', VOID, Enum);
95
95
  initMetadataForClass(JsonToStringWriter, 'JsonToStringWriter', JsonToStringWriter);
96
96
  //endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-digger",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "main": "kotlin/command-line-tools-digger-cli.js",
5
5
  "devDependencies": {
6
6
  "typescript": "5.5.4",