Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added dependencies for issues (#2196) #2531
This PR implements dependencies for issues, as described in #2196.
It lets you define anonther issue as a dependency for an issue. You the cannot close the issue if it has any dependent issues which aren't closed. If you try to autoclose an issue via commit message which still has dependencies left, autoclose will simply not close the issue, but the commit will not fail.
You can disable dependencies in the repo settings.
Currently, i would describe this as "working, but not finished", as there are some questions i have:
This is my first time I've done something like this in Go, before i've only played around with Go but never really did anything bigger. So, there are probably some things I didn't got right as a novice. Looking forward to hear your improvents to be made! Also thanks to @JonasFranzDEV who has helped me a lot.
Ok, cool. But i should change it so you only need the issue index, not its id (as it is right now).
Also, a more general question: should we allow dependencies across repositories? It doesn't check currently which repository the id belongs to you give it.
(For now, I think I'll just implement it with the issue index, later, when we have the search we could probably think about dependencies across repositories)
In the dependencies list it only lists the last 10 issues relative to that one.
@AragurDEV Fast search: issues search api (/api/v1/repos/:username/:reponame/issues) uses
I tested it, you can search only with full words, in your example it would be "test", "issue". But I can confirm, this feature is little buggy right now and UI does not fully work as expected in my tests.