Skip to content

Commit

Permalink
Repo Gardening: update wording in labeling comments (#40394)
Browse files Browse the repository at this point in the history
* Repo Gardening: update wording when an issue needs labels.

We need to make it clearer that you need all three label types, and why that would be helpful.

* Add message inviting feedback to OpenAI comment
  • Loading branch information
jeherve authored Nov 29, 2024
1 parent 99acc3a commit 7d7ccef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Prompt for labels: update wording.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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( {
Expand Down

0 comments on commit 7d7ccef

Please sign in to comment.