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

Github issue references in commit messages (e.g. "This commit fixes #67") #391

Closed
tisto opened this issue Mar 7, 2015 · 5 comments
Closed

Comments

@tisto
Copy link
Sponsor Member

tisto commented Mar 7, 2015

With mr.roboto committing all changes to buildout.coredev, it is now possible to set references to github issues in git commit messages. e.g.:

"This commit fixes #232"

Here is an example to show that it works:

plone/buildout.coredev#67

The problem is that this will only work for buildout.coredev issues.

I think being able to set those references would be quite an enhancement. I usually do this in my projects, and it really helps keeping track of things. Maybe we should think about making buildout.coredev our main repo for Plone issues (instead of CMFPlone). On the other hand I still think that http://github.com/plone/plone should be the place that people would expect to submit bug reports.

@gforcada
Copy link
Sponsor Member

gforcada commented Mar 7, 2015

Although github does not really help much on moving issues from project to project, at the very least it references them.

So either project: plone/plone, plone/P.CMFPlone or plone/b.coredev being the main issue tracker would not really matter as long as references are put.

I.e. if an issue is opened on the main issue tracker but is related to p.a.dicussion, an issue can be opened on p.a.discussion issue tracker with a reference to it. Now wherever someone fixes that issue and closes it, the issue on the main issue tracker will get that activity.

The issue will not be automatically closed, but at least the reporter will notice that a new issue was filled and that it was actually closed...

@tisto
Copy link
Sponsor Member Author

tisto commented Mar 10, 2015

With multiple repositories we still have to problem of id collisions though. What if there is an issue '#42' on plone.app.discussion and an issue '#42' on Products.CMFPlone? Both will be referenced. That could lead to lots of confusion...

@gforcada
Copy link
Sponsor Member

Well, I would say that rather than writing the commit message like this:

#42 fix la lala

Longer explanation li li li

I would write instead:

Fix la lala

Longer explanation li li li
Fixes https://github.com/plone/PACKAGE/issue/42

@jensens
Copy link
Sponsor Member

jensens commented Feb 4, 2016

is this still an issue or close?

@gforcada
Copy link
Sponsor Member

gforcada commented Feb 4, 2016

@jensens I would say so as long as everyone reads and follows http://docs.plone.org/develop/coredev/docs/git.html#making-commits :-)

@jensens jensens closed this as completed Feb 4, 2016
adammorrissirrommada added a commit to klabhub/neurostim that referenced this issue Dec 9, 2019
…ing updated in afterTrial(), making get(...,'atTrialTime',Inf) return the wrong (counterintuitive) value for the trial. In this version, the criterion correct/incorrect function is evaluated in afterTrial(), but update() is not called until beforeTrial() in the next trial.
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

3 participants