License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The API for dealing with labels on Github issues as described on http://developer.github.com/v3/issues/labels/.
Synopsis
- labelsOnRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueLabel)
- labelR :: Name Owner -> Name Repo -> Name IssueLabel -> Request k IssueLabel
- createLabelR :: Name Owner -> Name Repo -> NewIssueLabel -> Request 'RW IssueLabel
- updateLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> UpdateIssueLabel -> Request 'RW IssueLabel
- deleteLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> GenRequest 'MtUnit 'RW ()
- labelsOnIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueLabel)
- addLabelsToIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request 'RW (Vector IssueLabel)
- removeLabelFromIssueR :: Name Owner -> Name Repo -> Id Issue -> Name IssueLabel -> GenRequest 'MtUnit 'RW ()
- replaceAllLabelsForIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request 'RW (Vector IssueLabel)
- removeAllLabelsFromIssueR :: Name Owner -> Name Repo -> Id Issue -> GenRequest 'MtUnit 'RW ()
- labelsOnMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> FetchCount -> Request k (Vector IssueLabel)
- module GitHub.Data
Documentation
labelsOnRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueLabel) Source #
List all labels for this repository. See https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository
labelR :: Name Owner -> Name Repo -> Name IssueLabel -> Request k IssueLabel Source #
Query a single label. See https://developer.github.com/v3/issues/labels/#get-a-single-label
createLabelR :: Name Owner -> Name Repo -> NewIssueLabel -> Request 'RW IssueLabel Source #
Create a label. See https://developer.github.com/v3/issues/labels/#create-a-label
:: Name Owner | |
-> Name Repo | |
-> Name IssueLabel | old label name |
-> UpdateIssueLabel | new label |
-> Request 'RW IssueLabel |
Update a label. See https://developer.github.com/v3/issues/labels/#update-a-label
deleteLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> GenRequest 'MtUnit 'RW () Source #
Delete a label. See https://developer.github.com/v3/issues/labels/#delete-a-label
labelsOnIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueLabel) Source #
List labels on an issue. See https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue
addLabelsToIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request 'RW (Vector IssueLabel) Source #
Add lables to an issue. See https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue
removeLabelFromIssueR :: Name Owner -> Name Repo -> Id Issue -> Name IssueLabel -> GenRequest 'MtUnit 'RW () Source #
Remove a label from an issue. See https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue
replaceAllLabelsForIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request 'RW (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.
removeAllLabelsFromIssueR :: Name Owner -> Name Repo -> Id Issue -> GenRequest 'MtUnit 'RW () Source #
Remove all labels from an issue. See https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue
labelsOnMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> FetchCount -> Request k (Vector IssueLabel) Source #
Query 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