coala-bears
coala-bears copied to clipboard
URLHeadBear: fake the user agent
A random fake user agent is used to request webpages that do not allow bot visits.
Fixes https://github.com/coala/coala-bears/issues/1203
For short term contributors: we understand that getting your commits well defined like we require is a hard task and takes some learning. If you look to help without wanting to contribute long term there's no need for you to learn this. Just drop us a message and we'll take care of brushing up your stuff for merge!
Checklist
- [ ] I read the commit guidelines and I've followed them.
- [ ] I ran coala over my code locally. (All commits have to pass individually. It is not sufficient to have "fixup commits" on your PR, our bot will still report the issues for the previous commit.) You will likely receive a lot of bot comments and build failures if coala does not pass on every single commit!
After you submit your pull request, DO NOT click the 'Update Branch' button. When asked for a rebase, consult coala.io/rebase instead.
Please consider helping us by reviewing other peoples pull requests as well:
- pick up any PR at https://coala.io/review
- review it (check https://coala.io/reviewing for more info)
- if you are sure that it needs work, use
corobo mark wip <URL>
to get it out of the review queue.
The more you review, the more your score will grow at coala.io and we will review your PRs faster!
Comment on 5d00e2672be049dbfceed88660704d02eb498103.
Shortlog of HEAD commit does not match given regex: ([^:]|[^:]+: [A-Z0-9].*)
Origin: GitCommitBear, Section: all.commit
.
Comment on 87fa05ed074bf4d80c90a008141edcc41787097c.
Shortlog of HEAD commit does not match given regex: ([^:]|[^:]+: [A-Z0-9].*)
Origin: GitCommitBear, Section: all.commit
.
Comment on 87fa05ed074bf4d80c90a008141edcc41787097c.
Shortlog of HEAD commit does not match given regex: ([^:]|[^:]+: [A-Z0-9].*)
Origin: GitCommitBear, Section: all.commit
.
You could runcoala
after you make all the changes and finish up commiting the changes.That would make it easier after pushing.
Also in terms of the testing
headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'})
Add these headers to your assertion tests.Travis seems to be failing because of that.
You could run
coala
after you make all the changes and finish up commiting the changes.That would make it easier after pushing. Also in terms of the testingheaders={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'})
Add these headers to your assertion tests.Travis seems to be failing because of that.
Yeah I have created an issue for the same to keep it separate from this one.