-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore(quickie): delete quickie for gh #1043
chore(quickie): delete quickie for gh #1043
Conversation
Current dependencies on/for this PR: This stack of pull requests is managed by Graphite. |
ce03cb0
to
b9701ed
Compare
636e1af
to
baf01b5
Compare
fileSha, | ||
branchName = STAGING_BRANCH, | ||
}: { fileSha: any; branchName?: string } | ||
{ fileSha }: { fileSha: any; branchName?: string } |
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.
nit: wrong typing - remove branchName
! could we also stricten fileSha
to string
?
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.
good catch, removed
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.
only looked at code changes and skimmed tests - not approving first because of sanity checks. code wise lgtm
const refEndpoint = `${siteName}/git/refs/heads/${ | ||
branchName || STAGING_BRANCH | ||
}` |
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.
i might be lacking context here but it seems abit weird to me to see branchName
allowed as an argument here when we're explicitly removing it elsewhere (cos we know the branch should be STAGING_BRANCH
) - is this because there are some call sites that need the branch to be different? (a merge to master
perhaps)
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.
Yes, this is the case! Specifically we have a RepoManagementService
that calls on this branch name, and thus this API should be preserved
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.
thanks for checking - seems like we (isomer admins) use it to reset branches so it should still be staging
. that being said, it's ok to leave as-is cos this is hard to tell for sure + the added flexibility of resetting a diff branch might be useful for staging/staging-lite/master
baf01b5
to
3f2e228
Compare
e56e758
to
a0ae4c9
Compare
3f2e228
to
3ac9df0
Compare
Agreed, looked through all the call sites and found one pending For the rest, the way i check is if the fun exists in |
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.
lgtm
Merge activity
|
3ac9df0
to
a875e6f
Compare
Problem
Actual removal of the no longer needed
GithubCommitService
file to reduce complexity + fix test cases.