anc95 / anc95/ChatGPT-CodeReview
Feature request(GitHub App): Specify label name to be reviewed in .env
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 461
- PR merge metrics
- No merged PRs in 30d
Description
Purpose
As per Github Actions version, it would be convenient if you can specify the label name to be reviewed in GitHub App version.
Suggestion
Here's my implementation suggestion.
-
add label name to .env
add label name such asTARGET_LABELto .env.
https://github.com/anc95/ChatGPT-CodeReview/blob/main/.env.example -
add a label check in bot.ts
IfTARGET_LABELis specified in .env, check if the label is attached.
const target_label = process.env.TARGET_LABEL
if (target_label && pull_request.labels.every(label => label.name !== target_label)) {
return "no target label attached"
}
I also tried to make a PR, but npm test doesn't work for my environment. (Windows / WSL2)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with .env.example and the label-handling logic in src/bot.ts around the linked line. Check how existing environment variables are read and run npm test if the local setup permits. Done means an optional TARGET_LABEL setting prevents review when the pull request lacks that label, while preserving current behavior when it is unset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 62/100