-
Notifications
You must be signed in to change notification settings - Fork 547
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
Replace ForgeIdentifier with string type #5475
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -25,28 +25,13 @@ pub struct Branch { | |||
/// An identifier for a review unit at a forge (eg. GitHub Pull Request number). | |||
/// None if is no review unit, eg. no Pull Request has been created. | |||
#[serde(default)] | |||
pub forge_id: Option<ForgeIdentifier>, | |||
pub pull_request_id: Option<i32>, |
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.
Perhaps update the docs above - is it a PR number or a PR id? The previous type had PR number. The GitHub api has both... and i always mix them up. I think the PR number needs a repo as well, while the PR ID is more globally unique or something.
Also - you probably want useize
not i32
76d4313
to
9e22c6f
Compare
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.
nvm. i initially though about deserializing the value from the old type to the new type but just realised that since the name is different it wont be a problem.
i should get some sleep
- simplifying to keep things simple in the front end
9e22c6f
to
b635d94
Compare
b635d94
to
54caba3
Compare
Simplifying to keep things simple in the front end
This is part of a stack made with GitButler: