This adds a labels parameter to postIssue, which takes an array of String, defaulting to an empty array (so it should have no impact on existing method calls).
If the label doesn't exist in the repo, Github will create it for us.
If the user doesn't have push access to the repo, the labels will be ignored.
I've also updated the postIssue example in README to include the parameter.
This adds a labels parameter to
postIssue
, which takes an array ofString
, defaulting to an empty array (so it should have no impact on existing method calls).If the label doesn't exist in the repo, Github will create it for us. If the user doesn't have push access to the repo, the labels will be ignored.
I've also updated the
postIssue
example inREADME
to include the parameter.