Skip to content
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 commit to agree with DCO #348

Closed
iamsauravsharma opened this issue Mar 13, 2019 · 10 comments
Closed

Signoff commit to agree with DCO #348

iamsauravsharma opened this issue Mar 13, 2019 · 10 comments

Comments

@iamsauravsharma
Copy link

iamsauravsharma commented Mar 13, 2019

ImgBot should signoff commit so it agrees with DCO default git commit -s or git commit --signoff command

@SuperSandro2000
Copy link

The thing you wanted to link is broken.

And I think this is a good idea.

@dabutvin
Copy link
Contributor

Hi @iamsauravsharma @SuperSandro2000 Thanks for raising this!

I'm not too familiar with the signoff.
ImgBot already does a GPG signature on every commit. I'm curious, why would you want a signoff in addition to a signature?

@SuperSandro2000
Copy link

I hope this short StackOverflow helps you https://stackoverflow.com/a/1962112/4446318
Basically it says that the commit is done by ImgBot in case you create a patch from it and git author and commiter gets lost by that.

@dabutvin
Copy link
Contributor

sweet. Thanks for the link.

It looks like we can add this at the end of the commit message body.
It is not a header or anything fancy, so if that is the case it should be pretty trivial.

Should it always be ImgBot signing off on the commit? Or should it be configurable, that the person that installed the bot can say they sign off on it?

$"Signed-off-by: {KnownGitHubs.ImgBotLogin} <{KnownGitHubs.ImgBotEmail}>"

Add the line here: https://github.com/dabutvin/ImgBot/blob/master/CompressImagesFunction/CommitMessage.cs#L50

update the tests here:
https://github.com/dabutvin/ImgBot/blob/master/Test/CommitMessageTests.cs

Up for grabs if anyone wants to take it on

@SuperSandro2000
Copy link

I don't see a reason not to. Maybe make it opt-out if someone is annoyed by it.

@dabutvin
Copy link
Contributor

For one of your projects, like https://github.com/SuperSandro2000/Space-Station/pull/1 would you configure it to say you sign off?

[ImgBot] Optimize images

*Total -- 5,527.24kb -> 4,395.47kb (20.48%)

/graphics/deepwater/deepwater-outer-corner.png -- 14.72kb -> 0.56kb (96.18%)
/graphics/deepwater/deepwater-side.png -- 14.99kb -> 0.71kb (95.26%)

Signed-off-by: SuperSandro2000 <sandro.jaeckel@gmail.com>

Or would you rather see it be signed off by ImgBot?

[ImgBot] Optimize images

*Total -- 5,527.24kb -> 4,395.47kb (20.48%)

/graphics/deepwater/deepwater-outer-corner.png -- 14.72kb -> 0.56kb (96.18%)
/graphics/deepwater/deepwater-side.png -- 14.99kb -> 0.71kb (95.26%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

@SuperSandro2000
Copy link

That's a good question. My intuition says signed off by imgbot cause I didn't do anything.

@dabutvin
Copy link
Contributor

looks like for things like probot/dco they require the commit author match the email that is in the Signed-off-by

https://github.com/probot/dco/blob/master/lib/dco.js#L53-L56

@dabutvin
Copy link
Contributor

dabutvin commented Jul 9, 2019

let's do this ! you can see dependabot does it
image

who wants it!??

@dabutvin
Copy link
Contributor

opened #445 to add this to the commit message

dabutvin added a commit that referenced this issue Jul 21, 2019
update commit to agree with DCO (fixes #348)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@dabutvin @SuperSandro2000 @iamsauravsharma and others