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
PublicBot error #2086
Comments
I've noticed that too. It does not always happen though. See PR #2078, which is not linked to any open issue. Have you looked at |
Thanks @seafr It helped a lot in solving the issue. I found that the dangerfile says that if any commit has message containing #some_number than that will create no message. But if the person has written the issue number in the pr_body then that does not work. Lines 5 to 7 in 6051774
to
|
Awesome! Great catch.
…On Jan 25, 2018 10:21 AM, "Sidharth Bansal" ***@***.***> wrote:
Thanks @seafr <https://github.com/seafr> It helped a lot in solving the
issue.
I found that the dangerfile says that if any commit has message containing
#some_number than that will create no message. But if the person has
written the issue number in the pr_body then that does not work.
So, @jwarren <https://github.com/jwarren> shall I change
https://github.com/publiclab/plots2/blob/6051774af117bd32c2af944a23df09
7d0b2ebaf5/Dangerfile#L5-L7
to
unless git.commits.any? { |c| c.message =~ /#[\d]+/ } || github.pr_body.any?{ |c| c.message =~ /#[\d]+/ }
message "This pull request doesn't link to a issue number. Please refer to the issue it fixes (if any) in the body of your PR, in the format: `Fixes #123`."
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2086 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJzTW7FKZWQ3EkcraqeZ3ZsibKClxks5tOJvAgaJpZM4Rqkil>
.
|
You're welcome @SidharthBansal |
Please describe the problem (or idea)
I was doing a pull request at plots. I wrote "Fixes #issue_number" but still it is showing me "You must enter like "fixes ..."
See the first and the last line of the image
The text was updated successfully, but these errors were encountered: