Custodian v0.0.1 Custodian.Github.Labels behaviour View Source
Behaviour interface for interacting with labels on pull requests on GitHub.
Implemented using Tentacat in Custodian.Github.Tentacat.Labels
. In tests,
implemented as a mock in Mockcat.
Link to this section Summary
Callbacks
Adds the provided label(s) to the given pull request
Returns a list of strings representing all of the labels on a given pull request
Removes a given label from a given pull request
Link to this section Callbacks
Link to this callback
add(pull_request, label)
View Source
add(pull_request :: Custodian.Github.pull_request(), label :: String.t()) :: Custodian.Github.pull_request()
add(pull_request :: Custodian.Github.pull_request(), labels :: [String.t()]) :: Custodian.Github.pull_request()
Adds the provided label(s) to the given pull request.
Link to this callback
all(pull_request)
View Source
all(pull_request :: Custodian.Github.pull_request()) :: [String.t()]
Returns a list of strings representing all of the labels on a given pull request.
Link to this callback
remove(pull_request, label)
View Source
remove(pull_request :: Custodian.Github.pull_request(), label :: String.t()) :: Custodian.Github.pull_request()
Removes a given label from a given pull request.