Feature request(GitHub App): Specify label name to be reviewed in .env
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- github-actions, typescript
- Domain
- devtools
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.
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)
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 461
- PR merge metrics
- No merged PRs in 30d
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.
More from anc95/ChatGPT-CodeReview
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
anc95/ChatGPT-CodeReview#203 · 2 comments · 1 reaction ·
-
Rate limit Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
anc95/ChatGPT-CodeReview#201 · 4 comments ·
-
Issue Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
anc95/ChatGPT-CodeReview#200 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
anc95/ChatGPT-CodeReview#195 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
anc95/ChatGPT-CodeReview#189 · 2 comments ·
All issues in anc95/ChatGPT-CodeReview
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·