jgitver / jgitver/jgitver-maven-plugin

Make useGitCommitTimestamp use commit timestamp instead of author timestamp

Offen
#167 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Groovy
Sterne
166
Forks
42
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Issue

**version**: 1.9.0
**usage context**:
- [x] maven command line: 3.8.3

**Problem description**:

One reason for adding a timestamp to the version is that you want to have strictly increasing versions, where you can easily see which of two given versions is the newer one.

Currently, `useGitCommitTimestamp` is using the author timestamp of the commit. This is the timestamp that tells you when the author created the commit.
Then there is the commit timestamp, which is the timestamp that tells you when the commit was pushed.

Using the author timestamp as a version is a problem, because you do not gete strictly increasing versions. If I merge a PR that I have been working on for a couple of months, the version will look like it is two months old. But in fact it is the latest version, merged just a few seconds ago.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Das Issue identifiziert useGitCommitTimestamp als Einstiegspunkt und die Versionsverwaltung über die Maven-Kommandozeile als Nutzungskontext, nennt jedoch keine Dateien oder Tests. Beginne mit der Suche im Repository nach useGitCommitTimestamp und dem Abruf des Git-Zeitstempels. Überprüfe anschließend, dass generierte Versionen den Commit-Zeitstempel verwenden und nach zusammengeführten Änderungen weiterhin ansteigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
git, groovy
Bereich
build-system, release
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.