mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-10-14 15:53:55 +08:00
test
This commit is contained in:
1
dist/index.js
vendored
1
dist/index.js
vendored
@@ -15756,6 +15756,7 @@ class IssueCoreEngine {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const { owner, repo, octokit, issueNumber, getIssue } = this;
|
const { owner, repo, octokit, issueNumber, getIssue } = this;
|
||||||
const issue = yield getIssue();
|
const issue = yield getIssue();
|
||||||
|
console.log(issue);
|
||||||
const baseLabels = issue.labels.map(({ name }) => name);
|
const baseLabels = issue.labels.map(({ name }) => name);
|
||||||
const removeLabels = baseLabels.filter(name => labels.includes(name));
|
const removeLabels = baseLabels.filter(name => labels.includes(name));
|
||||||
for (const label of removeLabels) {
|
for (const label of removeLabels) {
|
||||||
|
@@ -217,8 +217,9 @@ export class IssueCoreEngine implements IIssueCoreEngine {
|
|||||||
public async removeLabels(labels: string[]) {
|
public async removeLabels(labels: string[]) {
|
||||||
const { owner, repo, octokit, issueNumber, getIssue } = this;
|
const { owner, repo, octokit, issueNumber, getIssue } = this;
|
||||||
const issue = await getIssue();
|
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));
|
const removeLabels = baseLabels.filter(name => labels.includes(name));
|
||||||
|
|
||||||
for (const label of removeLabels) {
|
for (const label of removeLabels) {
|
||||||
|
Reference in New Issue
Block a user