Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Is there a way to set a default author for a branch? #414

Closed
stratosgear opened this issue Dec 21, 2021 · 2 comments
Closed

Is there a way to set a default author for a branch? #414

stratosgear opened this issue Dec 21, 2021 · 2 comments
Labels
📦 Archived Open issues when project was archived ✨ Feature New behavior to be added

Comments

@stratosgear
Copy link

My attempts to set a default author per branch seem to fail:

https://codepen.io/stratosgear/pen/JjryMvE?editors=1010

My assumption and what I would expect to work is that all commits on the a-feature branch to be done by the anotherUser.

I could manually set the author for each separate commit (as done in the third commit) but that's "too much work"!

Is there another way to do what I want?

Thanks for a great library, btw...

@stratosgear stratosgear added the ✨ Feature New behavior to be added label Dec 21, 2021
@fabien0102
Copy link
Collaborator

Indeed, this should do the trick (https://github.com/nicoespeon/gitgraph.js/blob/master/packages/gitgraph-core/src/user-api/gitgraph-user-api.ts#L53) but we may have a little bug over there, do you want to have a look?

@stratosgear
Copy link
Author

Hey, thanks for pointing to the exact source place, but I took a look at the code and, sorry, I cannot follow through the interface/abstraction layers there, so I'm afraid I cannot be of use... :(

@nicoespeon nicoespeon added the 📦 Archived Open issues when project was archived label Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📦 Archived Open issues when project was archived ✨ Feature New behavior to be added
Projects
None yet
Development

No branches or pull requests

3 participants