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

reporters/github: Add regex for report notifications only for allowed… #6601

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aliceinwire
Copy link
Contributor

reporters/gitlab and reporters/github are conflicting if both are using
sourcestamps repository settings. this is making gitlab MR try to report
to github. for filtering such behaviour I have enabled a github
baseREGEX option on the github reporter that is allowing only
notifications towards allowed sourcestamps repository.

Signed-off-by: Alice Ferrazzi [email protected]

Copy link
Member

@p12tic p12tic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Basic idea makes sense, I've added some comments for improvements.

Also, a unit test is needed to ensure that the regex filtering works. You can see how TestGitHubCommentPush reuses TestGitHubStatusPush to create custom reporter class (in this case we just need custom reporter argument).

@aliceinwire aliceinwire force-pushed the update_github branch 3 times, most recently from 4a55c0e to 59f4c0b Compare August 19, 2022 04:17
@p12tic
Copy link
Member

p12tic commented Aug 21, 2022

Looks good. We now need tests, documentation update and a release note.

@aliceinwire aliceinwire force-pushed the update_github branch 4 times, most recently from 6fcca76 to b245a6f Compare September 20, 2022 05:04
… repository

reporters/gitlab and reporters/github are conflicting if both are using
sourcestamps repository settings. this is making gitlab MR try to report
to github. for filtering such behaviour I have enabled a github
baseREGEX option on the github reporter that is allowing only
notifications towards allowed sourcestamps repository.

Signed-off-by: Alice Ferrazzi <[email protected]>
@aliceinwire aliceinwire force-pushed the update_github branch 3 times, most recently from eaeefa8 to fc33f52 Compare September 21, 2022 09:11
@aliceinwire
Copy link
Contributor Author

@p12tic added documentation

@aliceinwire aliceinwire force-pushed the update_github branch 2 times, most recently from 2cbf0c3 to 43fe504 Compare September 21, 2022 13:00
Adding test for testing the option base_re

Signed-off-by: Alice Ferrazzi <[email protected]>
@aliceinwire
Copy link
Contributor Author

sorry I couldn't work out how to add the tests about this PR, could you help out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants