Add a check to find a review request with a matching commit ID for webhooks.
Review Request #5666 — Created April 1, 2014 and submitted
Previously, we relied only on the regex to match a review request ID in the
commit message. Now, we use the regex to try to find a matching review request
ID in the commit message, and if no match is found, we then use the commit ID
to try to find a matching review request.
I pushed different commits to a GitHub repository with the post-receive webhook
enabled (and saw the expected behaviour):
- Commit that did not match the regex but matched a review request's commit ID
- Commit that did not match the regex and did not match a review request's
commit ID
- Commit that matched the regex
Description | From | Last Updated |
---|---|---|
While the regex will hopefully be correctly written, I think we should sanity-check by wrapping this in a try ValueError: |
chipx86 | |
You'll still need to set a value here, or there won't be anything to return. What would the caller do … |
chipx86 | |
This line isn't needed. |
chipx86 |
- Change Summary:
-
Fixed review issues.
- Commit:
-
889467210cd208206042ad994d6b4e457afc030e9a83912cf6b476bf05f71ee463e9dcc2b73f1b95