-
Notifications
You must be signed in to change notification settings - Fork 5
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
--signoff
commits
#84
Comments
The That said, I'm not opposed to adding a
There are probably other options too, but I think one of these would be the easiest to implement. |
Thank you for this tip! I dug in a bit more into how commits and patches are structured, and it does seem that sha, err := graphqlApplier.Commit(
context.Background(),
"refs/heads/"+*fork.DefaultBranch,
&gitdiff.PatchHeader{
Author: &gitdiff.PatchIdentity{
Name: "Arun",
Email: "[email protected]",
},
AuthorDate: time.Now(),
Committer: &gitdiff.PatchIdentity{
Name: "Arun",
Email: "[email protected]",
},
CommitterDate: time.Now(),
Title: prTitle,
Body: prBody + "\n\nSigned-off-by: Arun <[email protected]>",
},
) And it appears okay in the commit message. Unrelated issueBut for some reason, IBM's checks don't seem to identify those commits as signed off. I had to run I'll keep digging into that issue separately because it's not a patch2pr issue. |
I'd try adding a trailing newline on your body, e.g.
When you create a commit using normal If that doesn't help, another debugging tip is to compare the raw commits created by |
Thanks for all the tips! I haven't found a conclusive answer to what's happening just yet. But my findings are below:
No change with adding this newline.
With the latter command, I found that the newline actually appears as a
On piping to So, I am not sure what's happening just yet, but I am going to keep looking tomorrow. |
I am not very certain but wanted to surface the idea of signing off commits with
patch2pr
-created commits.I don't see that feature at the moment, perhaps is a GitHub limitation?
The text was updated successfully, but these errors were encountered: