Safe Haskell | None |
---|---|
Language | Haskell2010 |
The API for dealing with labels on Github issues as described on http://developer.github.com/v3/issues/labels/.
- labelsOnRepo :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector IssueLabel))
- labelsOnRepo' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector IssueLabel))
- labelsOnRepoR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector IssueLabel)
- label :: Name GithubOwner -> Name Repo -> Name IssueLabel -> IO (Either Error IssueLabel)
- label' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Name IssueLabel -> IO (Either Error IssueLabel)
- labelR :: Name GithubOwner -> Name Repo -> Name IssueLabel -> GithubRequest k IssueLabel
- createLabel :: GithubAuth -> Name GithubOwner -> Name Repo -> Name IssueLabel -> String -> IO (Either Error IssueLabel)
- createLabelR :: Name GithubOwner -> Name Repo -> Name IssueLabel -> String -> GithubRequest True IssueLabel
- updateLabel :: GithubAuth -> Name GithubOwner -> Name Repo -> Name IssueLabel -> Name IssueLabel -> String -> IO (Either Error IssueLabel)
- updateLabelR :: Name GithubOwner -> Name Repo -> Name IssueLabel -> Name IssueLabel -> String -> GithubRequest True IssueLabel
- deleteLabel :: GithubAuth -> Name GithubOwner -> Name Repo -> Name IssueLabel -> IO (Either Error ())
- deleteLabelR :: Name GithubOwner -> Name Repo -> Name IssueLabel -> GithubRequest True ()
- labelsOnIssue :: Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueLabel))
- labelsOnIssue' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueLabel))
- labelsOnIssueR :: Name GithubOwner -> Name Repo -> Id Issue -> Maybe Count -> GithubRequest k (Vector IssueLabel)
- addLabelsToIssue :: Foldable f => GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> IO (Either Error (Vector IssueLabel))
- addLabelsToIssueR :: Foldable f => Name GithubOwner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> GithubRequest True (Vector IssueLabel)
- removeLabelFromIssue :: GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> Name IssueLabel -> IO (Either Error ())
- removeLabelFromIssueR :: Name GithubOwner -> Name Repo -> Id Issue -> Name IssueLabel -> GithubRequest True ()
- replaceAllLabelsForIssue :: Foldable f => GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> IO (Either Error (Vector IssueLabel))
- replaceAllLabelsForIssueR :: Foldable f => Name GithubOwner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> GithubRequest True (Vector IssueLabel)
- removeAllLabelsFromIssue :: GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error ())
- removeAllLabelsFromIssueR :: Name GithubOwner -> Name Repo -> Id Issue -> GithubRequest True ()
- labelsOnMilestone :: Name GithubOwner -> Name Repo -> Id Milestone -> IO (Either Error (Vector IssueLabel))
- labelsOnMilestone' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id Milestone -> IO (Either Error (Vector IssueLabel))
- labelsOnMilestoneR :: Name GithubOwner -> Name Repo -> Id Milestone -> Maybe Count -> GithubRequest k (Vector IssueLabel)
- module Github.Data
Documentation
labelsOnRepo :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector IssueLabel)) Source
All the labels available to use on any issue in the repo.
labelsOnRepo "thoughtbot" "paperclip"
labelsOnRepo' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector IssueLabel)) Source
All the labels available to use on any issue in the repo using authentication.
labelsOnRepo' (Just (GithubUser (user password))) "thoughtbot" "paperclip"
labelsOnRepoR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector IssueLabel) Source
List all labels for this repository. See https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository
label :: Name GithubOwner -> Name Repo -> Name IssueLabel -> IO (Either Error IssueLabel) Source
A label by name.
label "thoughtbot" "paperclip" "bug"
label' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Name IssueLabel -> IO (Either Error IssueLabel) Source
A label by name using authentication.
label' (Just (GithubUser (user password))) "thoughtbot" "paperclip" "bug"
labelR :: Name GithubOwner -> Name Repo -> Name IssueLabel -> GithubRequest k IssueLabel Source
Get a single label. See https://developer.github.com/v3/issues/labels/#get-a-single-label
createLabel :: GithubAuth -> Name GithubOwner -> Name Repo -> Name IssueLabel -> String -> IO (Either Error IssueLabel) Source
Create a label
createLabel (GithubUser (user password)) "thoughtbot" "paperclip" "bug" "f29513"
createLabelR :: Name GithubOwner -> Name Repo -> Name IssueLabel -> String -> GithubRequest True IssueLabel Source
Create a label. See https://developer.github.com/v3/issues/labels/#create-a-label
:: GithubAuth | |
-> Name GithubOwner | |
-> Name Repo | |
-> Name IssueLabel | old label name |
-> Name IssueLabel | new label name |
-> String | new color |
-> IO (Either Error IssueLabel) |
Update a label
updateLabel (GithubUser (user password)) "thoughtbot" "paperclip" "bug" "new-bug" "ff1111"
:: Name GithubOwner | |
-> Name Repo | |
-> Name IssueLabel | old label name |
-> Name IssueLabel | new label name |
-> String | new color |
-> GithubRequest True IssueLabel |
Update a label. See https://developer.github.com/v3/issues/labels/#update-a-label
deleteLabel :: GithubAuth -> Name GithubOwner -> Name Repo -> Name IssueLabel -> IO (Either Error ()) Source
Delete a label
deleteLabel (GithubUser (user password)) "thoughtbot" "paperclip" "bug"
deleteLabelR :: Name GithubOwner -> Name Repo -> Name IssueLabel -> GithubRequest True () Source
Delete a label. See https://developer.github.com/v3/issues/labels/#delete-a-label
labelsOnIssue :: Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueLabel)) Source
The labels on an issue in a repo.
labelsOnIssue "thoughtbot" "paperclip" 585
labelsOnIssue' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueLabel)) Source
The labels on an issue in a repo using authentication.
labelsOnIssue' (Just (GithubUser (user password))) "thoughtbot" "paperclip" (Id 585)
labelsOnIssueR :: Name GithubOwner -> Name Repo -> Id Issue -> Maybe Count -> GithubRequest k (Vector IssueLabel) Source
List labels on an issue. See https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue
addLabelsToIssue :: Foldable f => GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> IO (Either Error (Vector IssueLabel)) Source
Add labels to an issue.
addLabelsToIssue (GithubUser (user password)) "thoughtbot" "paperclip" (Id 585) ["Label1" "Label2"]
addLabelsToIssueR :: Foldable f => Name GithubOwner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> GithubRequest True (Vector IssueLabel) Source
Add lables to an issue. See https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue
removeLabelFromIssue :: GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> Name IssueLabel -> IO (Either Error ()) Source
Remove a label from an issue.
removeLabelFromIssue (GithubUser (user password)) "thoughtbot" "paperclip" (Id 585) "bug"
removeLabelFromIssueR :: Name GithubOwner -> Name Repo -> Id Issue -> Name IssueLabel -> GithubRequest True () Source
Remove a label from an issue. See https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue
replaceAllLabelsForIssue :: Foldable f => GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> IO (Either Error (Vector IssueLabel)) Source
Replace all labels on an issue. Sending an empty list will remove all labels from the issue.
replaceAllLabelsForIssue (GithubUser (user password)) "thoughtbot" "paperclip" (Id 585) ["Label1" "Label2"]
replaceAllLabelsForIssueR :: Foldable f => Name GithubOwner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> GithubRequest True (Vector IssueLabel) Source
Replace all labels on an issue. See https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue
Sending an empty list will remove all labels from the issue.
removeAllLabelsFromIssue :: GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error ()) Source
Remove all labels from an issue.
removeAllLabelsFromIssue (GithubUser (user password)) "thoughtbot" "paperclip" (Id 585)
removeAllLabelsFromIssueR :: Name GithubOwner -> Name Repo -> Id Issue -> GithubRequest True () Source
Remove all labels from an issue. See https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue
labelsOnMilestone :: Name GithubOwner -> Name Repo -> Id Milestone -> IO (Either Error (Vector IssueLabel)) Source
All the labels on a repo's milestone given the milestone ID.
labelsOnMilestone "thoughtbot" "paperclip" (Id 2)
labelsOnMilestone' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id Milestone -> IO (Either Error (Vector IssueLabel)) Source
All the labels on a repo's milestone given the milestone ID using authentication.
labelsOnMilestone' (Just (GithubUser (user password))) "thoughtbot" "paperclip" (Id 2)
labelsOnMilestoneR :: Name GithubOwner -> Name Repo -> Id Milestone -> Maybe Count -> GithubRequest k (Vector IssueLabel) Source
Get labels for every issue in a milestone. See https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone
module Github.Data