-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
7568 pragma(msg) segfaults with an aggregate including a class. #774
Conversation
Fixes issue 7568.
7568 pragma(msg) segfaults with an aggregate including a class.
|
github/bugzilla did not recognize the commit message, because it was not of the form: |
|
@WalterBright probably you should just modify the regex to match |
|
So the previous regex that Brad posted, no longer works? In the past, it even worked when I wrote "Fixes bug XXX". |
|
the comment needs to be in the commit message, not the pull request message -- at least from my quick read of the code: https://github.com/github/github-services/blob/master/services/bugzilla.rb |
|
@WalterBright The form is not the problem - the problem is that the text should have been in the commit message. All of the following forms will be recognized: (Yes, you can specify multiple bugs.) |
|
It's a waste of time to change the regex, and to enumerate what it accepts and doesn't. There's nothing hard about sticking to: nor is a leading # recognized. This isn't a creative writing class :-). Just write "fix issue nnnn" on a postit note and stick it to your monitor. Hell, it's "fix" followed by a simple cut & paste of the bugzilla entry. It works. |
|
I think you are misunderstanding the problem here. This has nothing to do with a leading #. Don did not include the text "Fixes issue 7568." as the commit message. It is part of the pull request description, but not the commit message. If it were part of the commit message, then according to the link @braddr posted it would have worked. But it did not work because it was not part of the commit message. If it was part of the commit message, it would have been recognized by the above-mentioned script, even if it had a # in it. Edit: it's the first line of the commit message. (GitHub is inconsistent when it shows the [...] buttons on commit headers.) |
|
Speaking of which, @WalterBright could you please label pull requests with a This allows GitHub recognize the commit is related to the pull request, and automatically reference the commit in the corresponding pull request. |
$ git log _error6785 commit 4d6cf6b |
|
Yes, see my edit. I looked at previous GitHub automatic actions on Bugzilla, and it seems like it will only work if it is part of the first line of the commit message (aka the commit subject). |
Sure. I didn't know it worked that way. |
Ah! So it must be in the title, not in the comment section. That's pretty stupid, it wastes valuable space in the change log short description. I wonder if github changed something. I have definitely had some previous commits matched by it, but perhaps none recently, and I don't think I ever put that syntax in the title. |
|
The needs-to-be-on-first-line thing might be worth discussing with the @github support folks… |
|
I think the convention is fine, we just need to follow it. |
I believe the shortest accepted form is "Bug NNNN". So, the subject line can be like "Bug NNNN - Bug description here" or "Fix description here (bug NNNN)". |
snprintf already defined in core.stdc.stdio.
Fixes issue 7568.