Excluding labels will still show as deletion
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- backend
Research direction
Start at lib/plugins/labels.js#L84 and trace how labels.exclude are handled when building the PR comment and issuing deletion calls. Verify the behavior in NOP mode as a reference. Done means excluded labels no longer appear in the deletion column or trigger the delete API call, while non-excluded labels retain their current behavior.
Written by the indexing model from the issue text.
Description
Problem Description
When configuring labels.exclude to exclude some/all labels it will still show as a Deletion in PR context. After some looking into the code i think it shouldn't actually run the delete API call. (in NOP mode it also doesn't print the delete message) Link to exclude code block.
What is actually happening
- Showing labels that should be exluded in the deletion column!
What is the expected behavior
- Do not show any excluded labels in the PR Comment.
Context
Are you using the hosted instance of probot/settings or running your own?
self-hosted
If running your own instance, are you using it with github.com or GitHub Enterprise?
github.com
Version of probot/settings
2.1.16
- Dominant language
- JavaScript
- Stars
- 922
- Forks
- 227
- Avg merge
- 18h 3m
- Merged PRs (30d)
- 14
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 github-community-projects/safe-settings
-
Bug Report: environment and repo variables API calls don't paginate, failing with more than 10 items Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
github-community-projects/safe-settings#983 · 1 comment · 2 reactions ·
All issues in github-community-projects/safe-settings
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 ·