Skip to content

Commit 8ea50a7

Browse files
authored
Improve copywriting
1 parent 5f02583 commit 8ea50a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/reporter/duplicate/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Duplicate issues removal script
22

3-
This script helps remove duplicate issues from a GitHub repository by closing newer duplicate issues.
3+
This script helps remove duplicate issues from a GitHub repository by closing issues that have the same title as any older issue.
44

55
## Prerequisites
66

77
1. Set up environment variables:
88
- Create a `.env` file in the root directory
9-
- Add the GitHub personal access token of the bot that manage issues on your collection with repo permissions:
9+
- Add the GitHub personal access token of the bot that manages issues on your collection, with `repo` permissions:
1010
```
1111
OTA_ENGINE_GITHUB_TOKEN=your_github_token
1212
```

scripts/reporter/duplicate/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async function removeDuplicateIssues() {
6060
owner,
6161
repo,
6262
issue_number: issue.number,
63-
body: `Closing duplicate issue. Original issue: #${originalIssue.number}`,
63+
body: `This issue is detected as duplicate as it has the same title as #${originalIssue.number}. It most likely was created accidentally by an engine older than [v2.3.2](https://github.com/OpenTermsArchive/engine/releases/tag/v2.3.2). Closing automatically.`,
6464
});
6565

6666
counter++;

0 commit comments

Comments
 (0)