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

PublicBot error #2086

Closed
SidharthBansal opened this issue Jan 24, 2018 · 4 comments
Closed

PublicBot error #2086

SidharthBansal opened this issue Jan 24, 2018 · 4 comments
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed

Comments

@SidharthBansal
Copy link
Member

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 ..."
image
See the first and the last line of the image

@seafr
Copy link
Member

seafr commented Jan 24, 2018

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 Dangerfile in the root folder?

@SidharthBansal
Copy link
Member Author

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.
So, @jwarren shall I change

plots2/Dangerfile

Lines 5 to 7 in 6051774

unless git.commits.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`."
end

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`."

@jywarren
Copy link
Member

jywarren commented Jan 25, 2018 via email

@jywarren jywarren added the bug the issue is regarding one of our programs which faces problems when a certain task is executed label Jan 25, 2018
@seafr
Copy link
Member

seafr commented Jan 26, 2018

You're welcome @SidharthBansal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed
Projects
None yet
Development

No branches or pull requests

3 participants