github-0.12: Access to the Github API, v3.

Safe HaskellNone
LanguageHaskell98

Github.Issues.Labels

Description

The API for dealing with labels on Github issues, as described on http://developer.github.com/v3/issues/labels/.

Synopsis

Documentation

label :: String -> String -> String -> IO (Either Error IssueLabel) Source

A label, by name.

Github.label "thoughtbot" "paperclip" "bug"

labelsOnRepo :: String -> String -> IO (Either Error [IssueLabel]) Source

All the labels available to use on any issue in the repo.

labelsOnRepo "thoughtbot" "paperclip"

labelsOnIssue :: String -> String -> Int -> IO (Either Error [IssueLabel]) Source

The labels on an issue in a repo.

labelsOnIssue "thoughtbot" "paperclip" 585

labelsOnMilestone :: String -> String -> Int -> IO (Either Error [IssueLabel]) Source

All the labels on a repo's milestone, given the milestone ID.

labelsOnMilestone "thoughtbot" "paperclip" 2