Sfoglia il codice sorgente

Removes unneeded data from query

main
Eric Amodio 2 anni fa
parent
commit
ddaaff359b
1 ha cambiato i file con 13 aggiunte e 16 eliminazioni
  1. +13
    -16
      src/premium/github/github.ts

+ 13
- 16
src/premium/github/github.ts Vedi File

@ -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 }
}
}
}`;

Caricamento…
Annulla
Salva