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

(WIP) Less GitHub dependence #111

Closed
wants to merge 3 commits into from

Conversation

Hoverbear
Copy link
Contributor

@Hoverbear Hoverbear commented Feb 16, 2024

Reverts #110 to re-implement #108

@Hoverbear Hoverbear self-assigned this Feb 16, 2024

assert!(subdir.is_relative());

let revision_count = match revision_info.local_revision_count {
Copy link
Contributor Author

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;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

⚠️ This appears to be a logic change, but it's not.

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,
Copy link
Contributor Author

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.

@Hoverbear
Copy link
Contributor Author

Sigh, this is going to roll into #109 since it's no longer just becoming a pure-code-move PR.

@Hoverbear Hoverbear closed this Feb 16, 2024
@cole-h cole-h deleted the revert-110-revert-108-less-github-dependence branch February 16, 2024 21:41
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.

1 participant