-
Notifications
You must be signed in to change notification settings - Fork 3
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
(WIP) Less GitHub dependence #111
Conversation
|
||
assert!(subdir.is_relative()); | ||
|
||
let revision_count = match revision_info.local_revision_count { |
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.
This code was effectively dead, we'd not actually use revision_count
anywhere except on L127 on the span.record
.
@@ -434,24 +458,56 @@ impl FlakeHubPushCli { | |||
} | |||
}; | |||
|
|||
let commit_count = github_graphql_data_result.rev_count; |
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.
Ok(ReleaseMetadata { | ||
description, | ||
repo: upload_name.to_string(), | ||
raw_flake_metadata: flake_metadata.clone(), | ||
readme, | ||
revision: revision_info.revision, | ||
commit_count: github_graphql_data_result.rev_count, |
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.
Notice how this matches with the apparent logic change above.
Sigh, this is going to roll into #109 since it's no longer just becoming a pure-code-move PR. |
Reverts #110 to re-implement #108