-
Notifications
You must be signed in to change notification settings - Fork 5
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
Change schema to allow alternative configurations #20
Conversation
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.
Instead of introducing a new indirection type (FlakeRefKind
), I'd just modify the PulRequestRef
type to take an additional struct field called anchor
. Then, PullRequest::flake_url
can construct a flake url that uses the anchor as attribute.
Incidentally, this would simplify the diff even further (which is something you want to aim for in first-pass attempts).
pub fn flake_url(&self) -> String This function can be refactored to return a |
I've applied this feedback, let me know if you have anything else in mind!
I did not apply this feedback because it resulted in having to wrap the url |
@ipetkov This is fine. I just realized that there is more to it than |
Refs #2
Refs #13 (comment)