Skip to content

Commit

Permalink
remove add-label-in-progress.yml and rm-label-in-progress.yml, remove…
Browse files Browse the repository at this point in the history
… 'Cannot reproduce' label on issue reopen
  • Loading branch information
slavaleleka committed Jan 25, 2021
1 parent 114a106 commit 1087ebf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 75 deletions.
37 changes: 0 additions & 37 deletions .github/add-label-in-progress.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/rm-label-in-progress.yml

This file was deleted.

@@ -1,4 +1,4 @@
name: Remove Resolved label on issue reopen
name: Remove 'Resolved' and 'Cannot reproduce' labels on issue reopen

on:
issues:
Expand All @@ -17,6 +17,7 @@ jobs:
var issue_number = context.issue.number;
var resolvedLabel = 'A: Resolved';
var cannotReproduceLabel = 'A: Cannot reproduce';
var issueLabelsRaw = await github.issues.listLabelsOnIssue({
owner,
Expand All @@ -35,3 +36,12 @@ jobs:
name: resolvedLabel,
});
}
if (issueLabels.indexOf(cannotReproduceLabel) > -1) {
github.issues.removeLabel({
owner,
repo,
issue_number,
name: cannotReproduceLabel,
});
}

0 comments on commit 1087ebf

Please sign in to comment.