-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Author and Commiter #29
Comments
I suggest following solution:
|
@stefanzweifel did you have a chance to check my suggestion: #29 (comment) ? After such an update, it would work the same way for pull requests by default |
@yelizariev Sorry mate, life got in the way the last few days. +1 for the new optional If no value has been passed by a user, the values should be I would also like to keep the committer to be "GitHub Actions actions@github.com". My idea behind the committer/author split was to allow users to differentiate commits which have been created by Actions. Could you maybe describe more, why you would like to have different author/committer logic depending on GitHub events? |
Here is the explanation of my desigin. Author=Commiter=Custom ValueThe idea is to fully "brand" commit with custom "Bot" (technically, I just create another github user). Imagine there is a repo "jedi-tools" and some CI\CD bot named "R2D2". The maintainers may not want to have "Github Actions" Name\Avatar along with R2D2 vs I understand your idea to mention "Github Actions" in the commit, but I prefer to do it explicitly in commit message. example:
Also, the maintainer would want to hide any reference to Github Actions and use some funny commit description. Author=ActorThis seems ok for Pull Request. Not sure about Branches. Do you know which value for GITHUB_ACTOR is used on branches? Does it refer to a one who made a push? If so, then it's ok for branches too. My first understanding was that it's the owner of the repository |
Adjusted suggestionI suggest following solution:
|
That is always the user which made the push.
Yeah, I think this is the way forward. I'm going to create a PR to implement this (hopefully over the next days). |
There are two main use cases and corresponding ways to sign a commit:
Branch Style
Author=Commiter=Custom User
Example: yelizariev/git-auto-commit-action-demo-app@ac69197
PR Style
Author=Actor
Commiter=GitHub Actions
Example: yelizariev/git-auto-commit-action-demo-app@fcee21e
The questions to discuss:
The text was updated successfully, but these errors were encountered: