You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would also pass the test Closes http://github.com. However, this would not trigger GitHub autolinked reference feature. The commit message should be Closes https://github.com instead.
For those who are not familiar with autolinked reference feature, I did a simple experiment. I created an issue first li-boxuan/github-playground#1
jayvdb
changed the title
CommitBear: Check proper use of https when referencing issues
CommitBear: Check proper use of https when referencing issues for GitHub
Oct 21, 2018
Check if commit message uses 'https' rather than 'http' to automatically
close the referenced issue for GitHub and GitLab. Error message now
includes host.
Closescoala#2683Closescoala#2722
https://github.com/coala/coala-bears/blob/master/bears/vcs/CommitBear.py#L360 matches links and tags, e.g.
fix #123
,fix https://github.com
This would also pass the test
Closes http://github.com
. However, this would not trigger GitHub autolinked reference feature. The commit message should beCloses https://github.com
instead.For those who are not familiar with autolinked reference feature, I did a simple experiment. I created an issue first li-boxuan/github-playground#1
Then I create a pr, aiming to close that issue. See commit message https://github.com/li-boxuan/github-playground/pull/2/commits. However, after this pr gets merged, it doesn't close the corresponding issue automatically.
Finally, this pr https://github.com/li-boxuan/github-playground/pull/3/commits closes the corresponding issue automatically when it's merged. Check commit messages carefully to see the difference.
That means we should check proper usage of
https
, at least for GitHub. Not sure if GitLab has similar features.The text was updated successfully, but these errors were encountered: