Conversation
/** Can't search issues with draft:false in the query so this is appended only for pulls **/ | ||
if (type === 'pulls') { | ||
queryParts.push(exemptDrafts ? 'draft:false' : '') | ||
} |
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.
I didn't write tests for this yet, but if this PR is agreeable I will definitely add those.
As for why I conditionally wrapped it - if you include draft:boolean
in your query for issues, nothing returns - so this can only be applied for pulls.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
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.
FWIW, to me, as some random person on the internet, this seems like the right way to implement this. I'm not sure how we get traction from the maintainers to approve/merge this?
@bkeepers I realize your bio says "formerly github" but is there someone you can nudge about this pull request? I'm gonna close it otherwise and find an alternative solution. |
This Pull Requests adds
exemptDrafts
option to exclude Draft pull requests.Related Issue: #265
View rendered README.md