-
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
Less GitHub dependence #108
Conversation
project_id: i64, | ||
owner_id: i64, |
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.
what do we even do with these? Presumably we only trust the JWT derived ids on the server?
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.
That's correct, I don't even see us deserializing these fields on the server, but I'm trying to keep this simple mechanical moves. Next PR is contentful. :)
tracing::debug!( | ||
"Getting revision count locally failed, using data from github instead" | ||
); | ||
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.
hmmm. not a blocker but can we just get rid of it completely? what scenarios does from_git_root fail, and does the rest of the push process still work even in that case?
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.
Generally github action clones are shallow if I recall? I'm not sure I remember. I'm hoping to get rid of querying this data entirely.
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.
Looks good, don't want to get too carried away with ideas since I know there's more coming.
FYI: this was reverted in #110 because it caused rolling version numbers to be calculated incorrectly. |
Furthers the cause of #107 and extracts out all the github-fetched data into
src/cli/mod.rs
for now, such thatpush_new_release
andReleaseMetadata::build
are no longer dependent on the github related structs. This should make opening up other code forges easier.There should be no material code changes here, only refactoring.