Include relevant git log in notifications #133

Closed
opened 2024-08-06 19:45:14 +01:00 by kemitix · 0 comments
Owner

Add an array of strings the notification to allow rendering a simple git log graph that would be the equivalent of running this command:

git log --oneline --graph --decorate origin/main origin/dev origin/next | awk "1;/$(git merge-base --octopus dev origin/main origin/next origin/dev | cut -b -7)/{exit}"

And example log could look something like:

* 4d7b9cb (origin/dev) chore: update 5
| * 1b32b14 (origin/next, origin/main, origin/HEAD) chore: update 4
|/
* 9f22d61 chore: Delete .git-next.toml

The graph would show the positions of main, next and dev, as well as their common parent commit.

Add an array of strings the notification to allow rendering a simple git log graph that would be the equivalent of running this command: ```bash git log --oneline --graph --decorate origin/main origin/dev origin/next | awk "1;/$(git merge-base --octopus dev origin/main origin/next origin/dev | cut -b -7)/{exit}" ``` And example log could look something like: ``` * 4d7b9cb (origin/dev) chore: update 5 | * 1b32b14 (origin/next, origin/main, origin/HEAD) chore: update 4 |/ * 9f22d61 chore: Delete .git-next.toml ``` The graph would show the positions of `main`, `next` and `dev`, as well as their common parent commit.
kemitix added the
Kind/Enhancement
label 2024-08-06 19:45:24 +01:00
kemitix self-assigned this 2024-08-06 19:45:28 +01:00
kemitix added this to the Road to v1 - Forgejo & Github project 2024-08-06 19:45:31 +01:00
kemitix added this to the NEXT-RELEASE milestone 2024-08-06 19:45:34 +01:00
kemitix modified the milestone from NEXT-RELEASE to v0.13.4 2024-08-08 09:49:33 +01:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: kemitix/git-next#133
No description provided.