We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d773ec commit 40bb123Copy full SHA for 40bb123
issue.go
@@ -284,8 +284,21 @@ func (i Issue) GetRelativeIssueURL(target string) string {
284
}
285
286
func (i Issue) BlocksAnEpic() bool {
287
+ return i.blocksAnEpic(0)
288
+}
289
+
290
+func (i Issue) String() string {
291
+ out, _ := json.Marshal(i)
292
+ return string(out)
293
294
295
+func (i Issue) blocksAnEpic(depth int) bool {
296
+ if depth > 100 {
297
+ log.Printf("very high blocking depth (>100), do not continue. (issue=%s)", i)
298
+ return false
299
+ }
300
for _, dep := range i.Blocks {
- if dep.IsEpic() || dep.BlocksAnEpic() {
301
+ if dep.IsEpic() || dep.blocksAnEpic(depth+1) {
302
return true
303
304
0 commit comments