Movatterモバイル変換


[0]ホーム

URL:


Issue

Issue

Issue wraps the functionality to get issues for repositories

Constructor

new Issue(repository, authopt, apiBaseopt)

Create a new Issue

Parameters:
NameTypeAttributesDefaultDescription
repositorystring

the full name of the repository (:user/:repo) to get issues for

authRequestable.auth <optional>

information required to authenticate to Github

apiBasestring <optional>
https://api.github.com

the base Github API URL

Source:

Methods

createIssue(issueData, cbopt) → {Promise}

Create a new issue

Parameters:
NameTypeAttributesDescription
issueDataObject

the issue to create

cbRequestable.callback <optional>

will receive the created issue

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

createIssueComment(issue, comment, cbopt) → {Promise}

Comment on an issue

Parameters:
NameTypeAttributesDescription
issuenumber

the id of the issue to comment on

commentstring

the comment to add

cbRequestable.callback <optional>

will receive the created comment

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

createLabel(labelData, cbopt) → {Promise}

Create a new label

Parameters:
NameTypeAttributesDescription
labelDataObject

the label definition

cbRequestable.callback <optional>

will receive the object representing the label

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

createMilestone(milestoneData, cbopt) → {Promise}

Create a new milestone

Parameters:
NameTypeAttributesDescription
milestoneDataObject

the milestone definition

cbRequestable.callback <optional>

will receive the milestone

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

deleteIssueComment(id, cbopt) → {Promise}

Delete a comment on an issue

Parameters:
NameTypeAttributesDescription
idnumber

the comment id to delete

cbRequestable.callback <optional>

will receive true if the request is successful

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

deleteLabel(label, cbopt) → {Promise}

Delete a label

Parameters:
NameTypeAttributesDescription
labelstring

the name of the label to delete

cbRequestable.callback <optional>

will receive the status

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

deleteMilestone(milestone, cbopt) → {Promise}

Delete a milestone (this is distinct from closing a milestone)

Parameters:
NameTypeAttributesDescription
milestonestring

the id of the milestone to delete

cbRequestable.callback <optional>

will receive the status

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

editIssue(issue, issueData, cbopt) → {Promise}

Edit an issue

Parameters:
NameTypeAttributesDescription
issuenumber

the issue number to edit

issueDataObject

the new issue data

cbRequestable.callback <optional>

will receive the modified issue

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

editIssueComment(id, comment, cbopt) → {Promise}

Edit a comment on an issue

Parameters:
NameTypeAttributesDescription
idnumber

the comment id to edit

commentstring

the comment to edit

cbRequestable.callback <optional>

will receive the edited comment

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

editLabel(label, labelData, cbopt) → {Promise}

Edit a label

Parameters:
NameTypeAttributesDescription
labelstring

the name of the label to edit

labelDataObject

the updates to make to the label

cbRequestable.callback <optional>

will receive the updated label

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

editMilestone(milestone, milestoneData, cbopt) → {Promise}

Edit a milestone

Parameters:
NameTypeAttributesDescription
milestonestring

the id of the milestone to edit

milestoneDataObject

the updates to make to the milestone

cbRequestable.callback <optional>

will receive the updated milestone

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

getIssue(issue, cbopt) → {Promise}

Get a particular issue

Parameters:
NameTypeAttributesDescription
issuenumber

the issue number to fetch

cbRequestable.callback <optional>

will receive the issue

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

getIssueComment(id, cbopt) → {Promise}

Get a single comment on an issue

Parameters:
NameTypeAttributesDescription
idnumber

the comment id to get

cbRequestable.callback <optional>

will receive the comment

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

getLabel(label, cbopt) → {Promise}

Get a label

Parameters:
NameTypeAttributesDescription
labelstring

the name of the label to fetch

cbRequestable.callback <optional>

will receive the label

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

getMilestone(milestone, cbopt) → {Promise}

Get a milestone

Parameters:
NameTypeAttributesDescription
milestonestring

the id of the milestone to fetch

cbRequestable.callback <optional>

will receive the milestone

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

listIssueComments(issue, cbopt) → {Promise}

List comments on an issue

Parameters:
NameTypeAttributesDescription
issuenumber

the id of the issue to get comments from

cbRequestable.callback <optional>

will receive the comments

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

listIssueEvents(issue, cbopt) → {Promise}

List the events for an issue

Parameters:
NameTypeAttributesDescription
issuenumber

the issue to get events for

cbRequestable.callback <optional>

will receive the list of events

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

listIssues(options, cbopt) → {Promise}

List the issues for the repository

Parameters:
NameTypeAttributesDescription
optionsObject

filtering options

cbRequestable.callback <optional>

will receive the array of issues

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

listLabels(options, cbopt) → {Promise}

List the labels for the repository

Parameters:
NameTypeAttributesDescription
optionsObject

filtering options

cbRequestable.callback <optional>

will receive the array of labels

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

listMilestones(options, cbopt) → {Promise}

List the milestones for the repository

Parameters:
NameTypeAttributesDescription
optionsObject

filtering options

cbRequestable.callback <optional>

will receive the array of milestones

Source:
See:
Returns:
  • the promise for the http request
Type
Promise


[8]ページ先頭

©2009-2025 Movatter.jp