staabm / phpstan-todo-by

Todo comments with expiration
https://staabm.github.io/2023/12/17/phpstan-todo-by-published.html
MIT License
173 stars 4 forks source link

Registering of new TODOs in JIRA #99

Closed Aeliot-Tm closed 3 months ago

Aeliot-Tm commented 3 months ago

Thank you for the package. I like it and I'm going to automate registering of new TODOs in JIRA by CI job.

The main idea is (expected behavior):

Pros:

Could you suggest package for this purpose?

staabm commented 3 months ago

you can take inspiration of the existing *Rule classes, which utilize the CommentMatcher to detect the Todo comments.

with the information of this comments you can trigger calls against the JIRA api. I am not sure how useful your suggested approach is though, as your plan might spam your jira instance with tickets.

I guess it kind of depends at which point in time you do the "sync"/"detect" of TODO comments and trigger the ticket creation.

I will close this issue for now, feel free to ask further questions

Aeliot-Tm commented 3 months ago

Hi @staabm,

Yeah, it may be noising but it is expected behavior. I'd like to solve 2 problems from my side.

The firs one. Developers add TODOs and forget about them soon. And managers know nothing about them. So, nobody do something with them and code become poisoned soon. I'd like to keep it clean.

The second one. I'd like to add some tags into the code when I review projects. And get prepared tickets in JIRA without spending of time on clicking in browser and filling lots of fields.

I spend several days on seeking if of required package and did not found necessary package. So, I'm going to implement it myself.

Thanks, a lot for your time.

Aeliot-Tm commented 2 months ago

Hi @staabm,

I released the first version of TODO Registrar. I'm going to improve it and make more compatible with your project. It would be nice when you could spend a little time to look through it. And maybe recommend it when you find it useful.

Kind regards, Anatoliy.

github-actions[bot] commented 1 month ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.