Comments (5)
So, based on APIs:
- GitHub:
labels
in JSON - array of strings - GitLab:
labels
as URL parameter - comma-separated string
For now there is formatting for:
- unreported issues:
PrefixKeyword:
- reported issues:
PrefixKeyword(Issueid):
What about adding the labels after the keyword in brackets []
or {}
? That would mean:
- unreported:
PrefixKeyword[Label1,Label2]:
- reported:
PrefixKeyword[Label1,Label2](Issueid):
Since the presence of the labels is optional it shouldn't break parsing of already reported issues in the code.
EDIT:
Thinking about it, it basically means that we can use it right away for GitLab and for Github just split it by commas.
from snitch.
@mfocko I don't really like it:
- This design adds complexity to the syntax of the TODOs and I'm not sure if the value we get out of it is justified.
- It implies that the contributor (the one who adds the TODOs) now has the power to prioritize the issues by assigning labels to them while in most of the cases it is the responsibility of the main developer of the project.
When I created this issue I had the following use case in my mind:
- Configure a label in .snitch.yaml.
snitch report
looks at.snitch.yaml
and always assigns that label to the newly reported TODOs.- The main developer than later filters all of the reported issues by that specific label and prioritizes them accordingly.
What do you think?
from snitch.
Maybe --label
CLI option? that could be used multiple times? or would take directly the comma-separated string...
Or both .yaml and CLI
or []
at the beginning of the title, but that's up to you
from snitch.
I just got an idea related to this issue...
What do you think about switch that would automatically assign label to issue based on the keyword?
from snitch.
@mfocko so you suggest to introduce already 2 entities to solve a problem of just assigning a label: keyword and switch. Too complicated, don't like even more.
from snitch.
Related Issues (20)
- Add support for sourcehut
- Remote customization is not documented HOT 2
- snitch resets the permissions of the files
- chmod not supported by windows HOT 1
- Bug: trailing "-->" for HTML comments HOT 1
- When the repo name ends with a file extension (like `.js`) it gets cut off
- Remote detection doesn't support port numbers in the URL properly HOT 1
- An option to stop traversing TODOs and just report everything that was already confirmed by the user
- snitch purge is broken
- snitch list CreateFile error: cannot find the file specified HOT 2
- How can I run this thing on Windows? HOT 1
- go get: installing executables with 'go get' in module mode is deprecated HOT 3
- Slow Execution Time on Large Projects
- prova
- prova
- prova
- prova
- Uncorrect handling of deleted files
- Repo detection breaks on repositories on GitLab's subgroups
- incorrect inline todos removing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snitch.