Set git author information from source commit instead of depending on local git config
- Dominant language
- Java
- Stars
- 3.8k
- Forks
- 345
- PR merge metrics
- No merged PRs in 30d
Description
Attaching copy.bara.sky file for reference:
```
core.workflow(
....
mode = "ITERATIVE",
authoring = authoring.pass_thru("username "),
transformations = [
metadata.restore_author("ORIGINAL_AUTHOR", search_all_changes = True),
],
)
```
Currently, we are restoring the original author of the commits. Even though the authors from the source commit is restored, the copybara is using the local git config author information set using `git config --global SETTING VALUE` as the commiter.
I could notice the same behaviour in copybara repo itself

Notice how the commits say
> Copybara Team authored and Copybara-Service committed yesterday
We would like to just retain the author information and avoid taking the local git user as commiter. For example, if that setting is enabled on copybara repository, the commits would say
> Copybara Team commited yesteday
When we tried to achieve this by avoiding to set git author information in local config, we get this error from copybara. (seems like it is needed for sure while running copybara)

So, is there a way to avoid setting committer information from local git config and use the source commit author instead?
Contributor guide
Assessment
This issue has not been assessed yet.