You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Define the base branch (e.g., main or master)
BASE_BRANCH=main
# Find the merge base (divergence point) between the current branch and the base branch
MERGE_BASE=$(git merge-base HEAD $BASE_BRANCH)# Extract contributors from the commits starting at the merge base up to HEAD
CONTRIBUTORS=$(git log $MERGE_BASE..HEAD --format='%aN <%aE>'| sort | uniq)# Output or append contributors as Co-authored-by linesforCONTRIBUTORin$CONTRIBUTORS;doecho"Co-authored-by: $CONTRIBUTOR"done
Motivation
No response
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Feature summary
Problem to fix when commits are sqashed.
Feature description
this is a common problem - when commits are squashed during PR merges - credit for original contributors gets lot.
git co-author is for that
https://www.dormant.ninja/git-co-author-script/
draft co author - github CI
Motivation
No response
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: