This commit is contained in:
元凛
2022-02-10 13:42:12 +08:00
parent 58c8d40948
commit 7833b3db99
2 changed files with 3 additions and 1 deletions

View File

@@ -217,8 +217,9 @@ export class IssueCoreEngine implements IIssueCoreEngine {
public async removeLabels(labels: string[]) {
const { owner, repo, octokit, issueNumber, getIssue } = this;
const issue = await getIssue();
console.log(issue)
const baseLabels: string[] = issue.labels.map(({ name }: any) => name);
const baseLabels: string[] = issue.labels.map(({ name }) => name);
const removeLabels = baseLabels.filter(name => labels.includes(name));
for (const label of removeLabels) {