diff --git a/projects/github-actions/repo-gardening/changelog/update-repo-gardening-need-label-message-update b/projects/github-actions/repo-gardening/changelog/update-repo-gardening-need-label-message-update new file mode 100644 index 0000000000000..f9b9b65aced9d --- /dev/null +++ b/projects/github-actions/repo-gardening/changelog/update-repo-gardening-need-label-message-update @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Prompt for labels: update wording. diff --git a/projects/github-actions/repo-gardening/src/tasks/triage-issues/ai-labeling.js b/projects/github-actions/repo-gardening/src/tasks/triage-issues/ai-labeling.js index 5675e176024a1..12dcdcc3da8cc 100644 --- a/projects/github-actions/repo-gardening/src/tasks/triage-issues/ai-labeling.js +++ b/projects/github-actions/repo-gardening/src/tasks/triage-issues/ai-labeling.js @@ -192,11 +192,17 @@ async function aiLabeling( payload, octokit ) { } ); // During testing, post a comment on the issue with the explanations. - const explanationComment = `**OpenAI suggested the following labels for this issue:** + let explanationComment = `**OpenAI suggested the following labels for this issue:** ${ Object.entries( explanations ) .map( ( [ labelName, explanation ] ) => `- ${ labelName }: ${ explanation }` ) .join( '\n' ) }`; + if ( ownerLogin === 'automattic' ) { + explanationComment += ` + +If you have feedback about the labels suggested, please let us know in #repo-gardening!`; + } + await octokit.rest.issues.createComment( { owner: ownerLogin, repo: name, diff --git a/projects/github-actions/repo-gardening/src/tasks/triage-issues/index.js b/projects/github-actions/repo-gardening/src/tasks/triage-issues/index.js index 0108eefc6806a..77f7103ab22f9 100644 --- a/projects/github-actions/repo-gardening/src/tasks/triage-issues/index.js +++ b/projects/github-actions/repo-gardening/src/tasks/triage-issues/index.js @@ -45,7 +45,7 @@ async function addCommentAskLabels( octokit, ownerLogin, authorLogin, repo, issu return; } - const commentBody = `It looks like you didn't add any labels to this issue. Could you please add a \`[Type]\`, a \`[Feature]\`, and a \`[Pri]\` label? Those labels will help us categorize and monitor activity in this repository. + const commentBody = `This issue could use some more labels, to help prioritize and categorize our work. Could you please add at least a \`[Type]\`, a \`[Feature]\`, and a \`[Pri]\` label? `; await octokit.rest.issues.createComment( {