chore: elaborate dupe bot comment (#21025)

Hopefully this stops people opening new threads
This commit is contained in:
bo0tzz 2025-08-18 15:36:53 +02:00 committed by GitHub
parent 1198311d64
commit cd6d8fcdfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ jobs:
run: | run: |
gh api graphql \ gh api graphql \
-f issueId="$NODE_ID" \ -f issueId="$NODE_ID" \
-f body="This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one." \ -f body="This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary." \
-f query=' -f query='
mutation CommentAndCloseIssue($issueId: ID!, $body: String!) { mutation CommentAndCloseIssue($issueId: ID!, $body: String!) {
addComment(input: { addComment(input: {
@ -77,7 +77,7 @@ jobs:
run: | run: |
gh api graphql \ gh api graphql \
-f discussionId="$NODE_ID" \ -f discussionId="$NODE_ID" \
-f body="This discussion has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one." \ -f body="This discussion has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary." \
-f query=' -f query='
mutation CommentAndCloseDiscussion($discussionId: ID!, $body: String!) { mutation CommentAndCloseDiscussion($discussionId: ID!, $body: String!) {
addDiscussionComment(input: { addDiscussionComment(input: {