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

[qa] Commit message check fails if there's a dot after the issue #187

Closed
nemesifier opened this issue May 7, 2021 · 9 comments · Fixed by #267
Closed

[qa] Commit message check fails if there's a dot after the issue #187

nemesifier opened this issue May 7, 2021 · 9 comments · Fixed by #267
Labels
bug Hacktoberfest Easy issues for attracting Hacktoberfest participants.

Comments

@nemesifier
Copy link
Member

Eg: Closes #344.: https://github.com/openwisp/openwisp-controller/runs/2529479318

@nemesifier nemesifier added the bug label May 7, 2021
@nemesifier nemesifier added this to To do (general) in OpenWISP Contributor's Board via automation May 7, 2021
@keshavgbpecdelhi
Copy link

Can I do this issue

@devkapilbansal
Copy link
Member

Sure @keshavgbpecdelhi go ahead

@keshavgbpecdelhi
Copy link

@devkapilbansal can you tell were to do changes (which code required modification)

@devkapilbansal
Copy link
Member

I think you need to fix this function

def check_commit_message():

I tried looking at that issue and found that regex is returning #344. from long description which is then matched with #344 from short description and the tests failed because #344. is not same as #344

@keshavgbpecdelhi
Copy link

Do we have to add "." in the skip case?
skip_cases = [
# merges
r'^Merge pull request #[A-Za-z0-9.]* from',
r"^Merge branch '(.?)' into",
# releases
r'^[A-Za-z0-9.]
release$',
r"^Bumped VERSION to (.?)$",
r"^Bump (.
?) from (.?) to (.?)$",
]

@keshavgbpecdelhi
Copy link

keshavgbpecdelhi commented Jul 16, 2021

It is written not to add "."

'please do not add a final dot at the end of commit short description'

@devkapilbansal
Copy link
Member

It is for short description only

@devkapilbansal
Copy link
Member

@keshavgbpecdelhi did you tried going throigh the code once and undertand what's going there ? The best way to fix the error is to try reproduce it locally, see which part of code is responsible for that, writing a test case that will fail for sure unless the error is fixed and then solving the error.

@nemesifier
Copy link
Member Author

@keshavgbpecdelhi first step is to write a failing test to replicate the issue, see https://github.com/openwisp/openwisp-utils/blob/master/tests/test_project/tests/test_qa.py#L79-L135.

keshavgbpecdelhi added a commit to keshavgbpecdelhi/openwisp-utils that referenced this issue Sep 30, 2021
@nemesifier nemesifier added the Hacktoberfest Easy issues for attracting Hacktoberfest participants. label Oct 1, 2021
@nemesifier nemesifier moved this from To do (general) to To do (Python & Django) in OpenWISP Contributor's Board Oct 1, 2021
devkapilbansal added a commit that referenced this issue Dec 6, 2021
Fix commit message check is failing when there is a dot after issue

Closes #187.
devkapilbansal added a commit that referenced this issue Dec 6, 2021
Fix commit message check is failing when there is a dot after issue

Closes #187.
devkapilbansal added a commit that referenced this issue Dec 6, 2021
Fix commit message check is failing when there is a dot after issue

Closes #187.
devkapilbansal added a commit that referenced this issue Dec 6, 2021
Fix commit message check is failing when there is a dot after issue

Closes #187.
devkapilbansal added a commit that referenced this issue Dec 6, 2021
Fix commit message check is failing when there is a dot after issue

Closes #187.
OpenWISP Contributor's Board automation moved this from To do (Python & Django) to Done Dec 8, 2021
nemesifier pushed a commit that referenced this issue Dec 8, 2021
Fix commit message check is failing when there is a dot after issue

Closes #187.
pandafy pushed a commit that referenced this issue Feb 18, 2022
Fix commit message check is failing when there is a dot after issue

Closes #187.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Hacktoberfest Easy issues for attracting Hacktoberfest participants.
Development

Successfully merging a pull request may close this issue.

3 participants