mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: use owner and repo name from API
solves casing problem
This commit is contained in:
parent
2e1eaada63
commit
c20c3e16e9
2 changed files with 4 additions and 2 deletions
2
src/platforms/GitHub/Request.d.ts
vendored
2
src/platforms/GitHub/Request.d.ts
vendored
|
|
@ -16,9 +16,11 @@ declare namespace GitHubAPI {
|
|||
}
|
||||
|
||||
type MetaData = {
|
||||
name: string
|
||||
default_branch: string
|
||||
html_url: string
|
||||
owner: {
|
||||
login: string
|
||||
html_url: string
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,8 +102,8 @@ export const GitHub: Platform = {
|
|||
const { userName, repoName, branchName } = rawMetaData
|
||||
const data = await API.getRepoMeta(userName, repoName, accessToken)
|
||||
const metaData: MetaData = {
|
||||
userName,
|
||||
repoName,
|
||||
userName: data.owner.login,
|
||||
repoName: data.name,
|
||||
branchName,
|
||||
userUrl: data?.owner?.html_url,
|
||||
repoUrl: data?.html_url,
|
||||
|
|
|
|||
Loading…
Reference in a new issue