Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: only remove labels during stable releases #9

Merged
merged 2 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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