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

refactor: remove repeated code for first/last find #163

Merged
merged 2 commits into from Apr 25, 2023

Conversation

NiloCK
Copy link
Contributor

@NiloCK NiloCK commented Apr 21, 2023

This PR removes a few lines of duplicated code, and enforces the first/last distinction

PR probably wants for a test of first / last correctness, but as far as I can tell that involves abstracting findComment so that mock Octokit results can be passed. (first/last configuration is not currently under test).

@NiloCK NiloCK changed the title refactor: remove dup implementation for first/last refactor: remove repeated code for first/last find Apr 21, 2023
@peter-evans peter-evans merged commit e5e598e into peter-evans:main Apr 25, 2023
5 checks passed
@peter-evans
Copy link
Owner

@NiloCK Thank you!

There are a handful of tests in CI here. Looks good to me.

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