Merge ~emmabrostrom/ols-jenkaas:pre-merge-bot-comment into ols-jenkaas:main
Status: | Merged |
---|---|
Merged at revision: | e4af68030bff5e64c5ed652e719681e248ce7321 |
Proposed branch: | ~emmabrostrom/ols-jenkaas:pre-merge-bot-comment |
Merge into: | ols-jenkaas:main |
Diff against target: |
43 lines (+14/-7) 1 file modified
olsjenkaas/commands.py (+14/-7) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Maximiliano Bertacchini | Approve | ||
Review via email: mp+464341@code.launchpad.net |
Commit message
Re-introduce pre-merge refactor to exclude certain bot comments
The command was only looking at the most recent bot comment, regardless
of if it had to do with pre-merge CI, which this update fixes. Additionally,
refactored the function a bit to enhance readability and ease of list
comprehension. Update here to fix the issue with spamming bot comments when
tests failing also made - swapped out indexing for a more rigorous regex approach
when getting most recent bot comment commit hash.
Description of the change
Nearly identical to MP: https:/
Which was reverted here: https:/
Tested in ols-jenkaas VM on both failing and succeeding comments.
LGTM!