Skip to content

Commit

Permalink
chore: only remove labels during stable releases (#9)
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed May 2, 2023
1 parent c32b194 commit 22aa1ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ inputs:
required: true
default: "true"
PR_LABELS_TO_REMOVE:
description: "Any labels to remove when commenting on Pull Requests - in Remix we apply `awaiting release` to pulls that have been merged but not released"
description: "Any labels to remove when commenting on Pull Requests about STABLE releases - in Remix we apply `awaiting release` to pulls that have been merged but not released"
required: false
ISSUE_LABELS_TO_REMOVE:
description: "Any labels to remove when commenting on and closing issues"
description: "Any labels to remove when commenting on and closing issues about STABLE releases"
required: false
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11108,7 +11108,7 @@ async function main() {
let prCommentArgs = ["pr", "comment", String(pr.number), "--body", prComment];
promises.push((0, execa_1.execa)("gh", prCommentArgs));
debug(`> gh ${prCommentArgs.join(" ")}`);
if (PR_LABELS_TO_REMOVE) {
if (PR_LABELS_TO_REMOVE && isStable) {
let prRemoveLabelArgs = [
"pr",
"edit",
Expand All @@ -11128,7 +11128,7 @@ async function main() {
let issueCloseArgs = ["issue", "close", String(issue)];
debug(`> gh ${issueCloseArgs.join(" ")}`);
promises.push((0, execa_1.execa)("gh", issueCloseArgs));
if (ISSUE_LABELS_TO_REMOVE) {
if (ISSUE_LABELS_TO_REMOVE && isStable) {
let issueRemoveLabelArgs = [
"issue",
"edit",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function main() {
promises.push(execa("gh", prCommentArgs));
debug(`> gh ${prCommentArgs.join(" ")}`);

if (PR_LABELS_TO_REMOVE) {
if (PR_LABELS_TO_REMOVE && isStable) {
let prRemoveLabelArgs = [
"pr",
"edit",
Expand All @@ -157,7 +157,7 @@ async function main() {
debug(`> gh ${issueCloseArgs.join(" ")}`);
promises.push(execa("gh", issueCloseArgs));

if (ISSUE_LABELS_TO_REMOVE) {
if (ISSUE_LABELS_TO_REMOVE && isStable) {
let issueRemoveLabelArgs = [
"issue",
"edit",
Expand Down

0 comments on commit 22aa1ff

Please sign in to comment.