-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature/#49 - Add an option to hide status cancelled events #51
Conversation
ok now you have something which works, but only with our current setup. Can you try to make the filtering of configurable? |
lib/action.ml
Outdated
let { state; description; _ } = notification in | ||
match description, state with | ||
| Some s, Failure | ||
when Str.string_match (Str.regexp_case_fold "^\\(Build #[0-9]+ canceled by .+\\|Failed (exit status 255)\\)$") s 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it is better to document that we support buildkite only and are open to PR to add other CI systems. Or if we should have a configuration option to let the user write their own regexp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last small change and I think it should be good to go
please cleanup commits (e.g. squash into one) |
added end of line regex fix one time check for cancel event added test and fixed regex test: add cache for 78492c2467876259d787538d600cfa0b18a2b814 slack: add culprit sha when notification can't be handled fix call generate for each webhook, defined expected output for new test refactor if to match extract filter logic out of generate_status_notification and into a function in generate_notifications in action.ml removed vscode settings added suprress_cancelle_events config value set supress to true moved function refactor return blank list if filter fail instead of per webhook filter use Re instead of Str compile regexp before usage removed .vscode and move to personal global left new line at end of gitignore removed .vscode refactor to use Option.default, set default to true, added documentation filter merge commit of main branch in status events make test_promote change filter to is, invert bool github actions: update apt packages
any reason this is still not merged? |
Feature/#49 - Add an option to hide status cancelled events
Description of the task
Detect cancel events via status failure and description text and dont emit status when encountered
How to test
References