nerdishbynature / octokit.swift

A Swift API Client for GitHub and GitHub Enterprise
MIT License
501 stars 128 forks source link

Add labels parameter to postIssue #81

Closed robmathers closed 5 years ago

robmathers commented 5 years ago

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.