Skip to content

Commit

Permalink
Rollback debug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust committed Oct 18, 2023
1 parent 55bce05 commit f170b34
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tools/manage-repo-labels.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const labels = [

async function createRepoLabels(owner, repo) {
console.log('Retrieve repository information...');
const query = `query {
const res = await sendGraphQLRequest(`query {
repository(owner: "${owner}", name: "${repo}") {
id
labels(first: 100) {
Expand All @@ -38,10 +38,7 @@ async function createRepoLabels(owner, repo) {
}
}
}
}`;
console.log(query);
const res = await sendGraphQLRequest(query);
console.log(JSON.stringify(res, null, 2));
}`);
const repositoryId = res.data.repository.id;
const repositoryLabels = res.data.repository.labels.nodes
.sort((l1, l2) => l1.name.localeCompare(l2.name));
Expand Down Expand Up @@ -150,8 +147,6 @@ const owner = process.argv[2].includes('/') ?
const repo =
process.argv[3] ??
process.argv[2].split('/')[1];
console.log(`- owner: ${owner}`);
console.log(`- repo: ${repo}`);

createRepoLabels(owner, repo)
.catch(err => {
Expand Down

0 comments on commit f170b34

Please sign in to comment.