浏览代码

Removes unneeded data from query

main
Eric Amodio 2 年前
父节点
当前提交
ddaaff359b
共有 1 个文件被更改,包括 13 次插入16 次删除
  1. +13
    -16
      src/premium/github/github.ts

+ 13
- 16
src/premium/github/github.ts 查看文件

@ -187,11 +187,12 @@ export class GitHubApi {
const cc = Logger.getCorrelationContext();
interface QueryResult {
repository: {
defaultBranchRef: {
name: string;
} | null;
} | null;
repository:
| {
defaultBranchRef: { name: string } | null | undefined;
}
| null
| undefined;
}
try {
@ -1288,26 +1289,22 @@ export class GitHubApi {
const cc = Logger.getCorrelationContext();
interface QueryResult {
repository: {
defaultBranchRef:
| {
name: string;
target: { oid: string };
}
| null
| undefined;
};
repository:
| {
defaultBranchRef: { name: string } | null | undefined;
}
| null
| undefined;
}
try {
const query = `query getDefaultBranchAndTip(
const query = `query getDefaultBranch(
$owner: String!
$repo: String!
) {
repository(owner: $owner, name: $repo) {
defaultBranchRef {
name
target { oid }
}
}
}`;

正在加载...
取消
保存