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

Signed-off-by checker in precommit testing script #15

Closed
ruben-ayrapetyan opened this issue May 5, 2015 · 3 comments
Closed

Signed-off-by checker in precommit testing script #15

ruben-ayrapetyan opened this issue May 5, 2015 · 3 comments
Labels
enhancement An improvement infrastructure Related to GH Actions or the tested targets minor

Comments

@ruben-ayrapetyan
Copy link
Contributor

Hello.

We could add check for correctness of Signed-off-by tag into tools/precommit.sh.

For example, we could check, that the tag is placed at last line of commit message and is composed of exactly the following three parts, splitted by space character: common prefix, name and e-mail of the commit's author.

@sand1k sand1k added enhancement An improvement minor infrastructure Related to GH Actions or the tested targets labels May 13, 2015
ruben-ayrapetyan added a commit that referenced this issue May 13, 2015
Related issue: #15 (#15).

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
ruben-ayrapetyan added a commit that referenced this issue May 13, 2015
Related issue: #15 (#15).

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
@egavrin egavrin added this to the Core ECMA features milestone May 13, 2015
@galpeter
Copy link
Contributor

I'm not sure that the merged solution is really good. The precommit should mean it is executed before the commit, but this just simply checks that last commit's signed-off-by line, which does not mean that it's your modification.

IMHO: a better way would be to use git hooks. to check if the signed-off-by is present in the commit message. There is already an example related to this in all git repos, just see the .git/hooks/commit-msg.sample.

Another one: why is this a "Core ECMA feature"?

@ruben-ayrapetyan
Copy link
Contributor Author

@galpeter ,

The precommit should mean it is executed before the commit, but this just simply checks that last commit's signed-off-by line, which does not mean that it's your modification.

The precommit testing is just the testing that should pass successfully on every pushed commit.
One can commit locally anything, and the precommit is not required to pass until the commit is pushed.

Precommit testing can be started by a commit's author to check it before push / creating pull request, by person who merges commit before merging if that is required by some rules, etc.

By the way, can the git-hooks be committed / pushed / pulled as other changes?

Another one: why is this a "Core ECMA feature"?

This is name of milestone, and milestone means specific date.
So, this means, that the issue is to be solved until the milestone.

@egavrin
Copy link
Contributor

egavrin commented May 14, 2015

@ruben-ayrapetyan , in the case changes are not committed, the signed-off-by checker would check previous commit. In the case, this could be ignored.

sand1k pushed a commit to sand1k/jerryscript that referenced this issue Nov 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement infrastructure Related to GH Actions or the tested targets minor
Projects
None yet
Development

No branches or pull requests

4 participants