RunCat365 icon indicating copy to clipboard operation
RunCat365 copied to clipboard

Duplicate Issues Improvements

Open mor39a opened this issue 5 months ago • 6 comments

Context of Contribution

  • [ ] Bug Fix
  • [ ] Refactoring
  • [ ] New Feature
  • [x] Others

Summary of the Proposal

  • Added a config.yml file to include a message that reiterates the request to check for duplicates before creating a new issue.
  • Added a GitHub Action that identifies potential duplicate issues and pull requests covering the same topic.

Reason for the new feature

Given the number of duplicate issues that have been created, I've implemented a set of features aimed at discouraging their creation and improving duplicate issue detection

Checklist

  • [x] I have read the CONTRIBUTING.md and agree to follow it.
  • [x] This PR does not contain commits of multiple contexts.
  • [x] Code follows proper indentation and naming conventions.
  • [x] Implemented using only APIs that can be submitted to the Microsoft Store.
  • [x] Works correctly in both dark theme and light theme.
  • [x] Works correctly on any device.

mor39a avatar Jun 19 '26 01:06 mor39a

@mor39a Rather than putting scripts directly into the YAML file, I prefer creating a .github/scripts/ directory, placing the executable scripts there, and then calling them from the workflow.

Kyome22 avatar Jun 19 '26 07:06 Kyome22

Basically, GitHub Actions can't even be run until they are merged. So, I think we should merge it once it looks good enough and then create follow-up PRs to make adjustments as needed.

Kyome22 avatar Jun 19 '26 07:06 Kyome22

@mor39a Rather than putting scripts directly into the YAML file, I prefer creating a .github/scripts/ directory, placing the executable scripts there, and then calling them from the workflow.

Ok, I'll separate them then.


Basically, GitHub Actions can't even be run until they are merged. So, I think we should merge it once it looks good enough and then create follow-up PRs to make adjustments as needed.

I don't recommend implementing features without testing them first. I was planning to run them in a test repository.

mor39a avatar Jun 19 '26 12:06 mor39a

We could also set it up to add a “potential-duplicate” label. What do you think, @Kyome22?

await github.rest.issues.addLabels({
  owner: owner,
  repo: repo,
  issue_number: issue.number,
  labels: ['potential-duplicate']
});

mor39a avatar Jun 19 '26 13:06 mor39a

I don't recommend implementing features without testing them first. I was planning to run them in a test repository.

Of course, if it's possible to set up a test repository and experiment there, that would be even better.

Kyome22 avatar Jun 19 '26 13:06 Kyome22

We could also set it up to add a “potential-duplicate” label. What do you think, @Kyome22?

await github.rest.issues.addLabels({
  owner: owner,
  repo: repo,
  issue_number: issue.number,
  labels: ['potential-duplicate']
});

Adding labels sounds like a great idea. I'm on board with that.

Kyome22 avatar Jun 19 '26 13:06 Kyome22