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

#10 Use pure function instead of calling 'basename' #34

Merged
merged 2 commits into from
Dec 30, 2023

Conversation

LeedsJohn
Copy link
Contributor

Hi, this PR responds to issue #10. By the recommendation of @anuragsoni, I switched the fetch_main_branch function to use Core.Filename.basename rather than calling the basename command.

In the issue, you suggested to move stripping via basename into a separate function and to write tests but I did not do this because I think the functions in Core can be trusted.

Let me know if there's any changes you would like me to make. Thanks!

@chshersh chshersh added the enhancement New feature or request label Dec 29, 2023
Copy link
Owner

@chshersh chshersh 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 this minor but still important improvement! 💯

I have one request for CHANGELOG but the code looks great to me 🚀

Copy link
Owner

@chshersh chshersh left a comment

Choose a reason for hiding this comment

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

Looks great, thanks again! 💯

@chshersh chshersh merged commit 6d9d485 into chshersh:main Dec 30, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants