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

fix: Add sha filter for pipeline events #3088

Merged
merged 3 commits into from
Apr 8, 2024
Merged

Conversation

tkyi
Copy link
Member

@tkyi tkyi commented Apr 4, 2024

Context

It would be nice for users to be able to filter events by commit SHA.

Objective

This PR adds query param to filter by sha for pipeline events.

References

N/A

License

I confirm that this contribution is made under a BSD license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@coveralls
Copy link

coveralls commented Apr 5, 2024

Coverage Status

coverage: 95.274% (+0.005%) from 95.269%
when pulling 7f12194 on pipelineEventsShaFilter
into 1f0a99f on master.

field: ['sha', 'configPipelineSha'],
// Do a fuzzy search for sha
// See https://www.w3schools.com/sql/sql_like.asp for syntax
keyword: `%${sha}%`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
keyword: `%${sha}%`
keyword: `${sha}%`

Copy link
Member

Choose a reason for hiding this comment

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

☝️ to support short and full SHA.

@tkyi tkyi merged commit a39d1c2 into master Apr 8, 2024
2 checks passed
@tkyi tkyi deleted the pipelineEventsShaFilter branch April 8, 2024 21:48
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

3 participants