-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support children via GitHub Taskslist #315
feat: support children via GitHub Taskslist #315
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
* This function must support recognizing the current issue's organization and repo, because some children may simply be "#43" instead of a github short-id such as "org/repo#43" | ||
* @param {string} issue | ||
*/ | ||
function getChildrenNew(issue: Pick<GithubIssueData, 'body' | 'html_url'>): ParserGetChildrenResponse[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function getChildrenNew
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your cognitive complexity is so small, an ant couldn't see it.
* This function must support recognizing the current issue's organization and repo, because some children may simply be "#43" instead of a github short-id such as "org/repo#43" | ||
* @param {string} issue | ||
*/ | ||
function getChildrenNew(issue: Pick<GithubIssueData, 'body' | 'html_url'>): ParserGetChildrenResponse[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function getChildrenNew
has 31 lines of code (exceeds 25 allowed). Consider refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your lines of code are so large, their gravitational pull knocked me off my chair.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits.
…first-prior-to-children
Co-authored-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
This reverts commit b3d13d9.
* main: feat: support children via GitHub Taskslist (#315)
* Revert "Revert "feat: support children via GitHub Taskslist (#315)" to fix #324 (#326)" This reverts commit 4a93ba2. fixes #324 fixes #313 * test: add test to confirm failure in #324 * fix: failure when parsing non-child link in issue.body * chore: address codeclimate comments * test: ensure children link parsing handles markdown links * fix: parsing markdown links in children * fix: more issues parsing additional links as children * chore: parse children links with for loop
Example issue using tasklists: ipfs/ipfs-gui#106
Note that it's milestone children are not using tasklists, and their children are still recognized properly.
demo: https://starmaps-git-313-add-support-for-parsing-tas-282722-ipfs-ignite.vercel.app/roadmap/github.com/ipfs/ipfs-gui/issues/106#simple