From 38d07eb284296e7fa01578b0fde07fa59fa4ef1e Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 7 Dec 2023 02:56:49 -0800 Subject: [PATCH] Adds "Needs: Author Feedback" if "Needs: Repro" is applied Summary: As the title says, if we discover that an issue needs a repro, then we should also apply the "Needs: Author Feedback" as that will make the issue stale quicker (30 days) rather than (90) Changelog: [Internal] [Changed] - Adds "Needs: Author Feedback" if "Needs: Repro" is applied Reviewed By: NickGerleman Differential Revision: D51895945 fbshipit-source-id: 3ed651aec96795ada3e7c28b0f1e68d68f7fc870 --- .github/workflow-scripts/checkForReproducer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflow-scripts/checkForReproducer.js b/.github/workflow-scripts/checkForReproducer.js index 50baff0d81c893..b4814d5441d9aa 100644 --- a/.github/workflow-scripts/checkForReproducer.js +++ b/.github/workflow-scripts/checkForReproducer.js @@ -8,6 +8,7 @@ */ const NEEDS_REPRO_LABEL = 'Needs: Repro'; +const NEEDS_AUTHOR_FEEDBACK_LABEL = 'Needs: Author Feedback'; const NEEDS_REPRO_HEADER = 'Missing Reproducible Example'; const NEEDS_REPRO_MESSAGE = `| :warning: | Missing Reproducible Example |\n` + @@ -83,7 +84,7 @@ module.exports = async (github, context) => { } else { await github.rest.issues.addLabels({ ...issueData, - labels: [NEEDS_REPRO_LABEL], + labels: [NEEDS_REPRO_LABEL, NEEDS_AUTHOR_FEEDBACK_LABEL], }); if (botComment) return;