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

added feature to ignore checks fixed #38 #80

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

omkarkhatavkar
Copy link
Contributor

This PR will add the feature requested for #38

@omkarkhatavkar
Copy link
Contributor Author

@matiasalbarello can chance to review this and getting merged ?

README.md Outdated Show resolved Hide resolved
@omkarkhatavkar
Copy link
Contributor Author

@matiasalbarello do you feel that this is useful and working okay?

@@ -47,6 +48,8 @@ def log_checks(checks, msg)

def apply_filters(checks)
checks.reject! { |check| check.name == workflow_name }
checks.reject! { |check| ignore_checks.include?(check.name) }
Copy link
Collaborator

Choose a reason for hiding this comment

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

In order to avoid iterating the array twice (by calling reject), I'd suggest joining both of them:
checks.reject! { |check| [ignore_checks, workflow_name].flatten.include?(check.name) }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks Done !

@matiasalbarello
Copy link
Collaborator

matiasalbarello commented Jul 3, 2023

thanks for the PR! I think that overall it looks ok. I left a few comments :)

@matiasalbarello
Copy link
Collaborator

@omkarkhatavkar, it seems that a test got broken. Could you fix it?

@omkarkhatavkar
Copy link
Contributor Author

omkarkhatavkar commented Oct 22, 2023

@omkarkhatavkar, it seems that a test got broken. Could you fix it?

@matiasalbarello it's hard for me to debug the ruby code, not know much about the stuff, I do fix the issue can you please cross-check?

@ssaunier ssaunier merged commit 9924042 into lewagon:master Dec 21, 2023
1 check passed
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

4 participants