Issue¶
A GitHub issue. Provides convenience methods to create comments and list
existing comments on this issue. The pull_request field is present when the
issue is actually a pull request.
Constructors¶
create¶
new val create(
creds: Credentials val,
url': String val,
respository_url': String val,
labels_url': String val,
comments_url': String val,
events_url': String val,
html_url': String val,
number': I64 val,
title': String val,
user': User val,
labels': Array[Label val] val,
state': (String val | None val),
body': (String val | None val),
pull_request': (IssuePullRequest val | None val) = reference)
: Issue val^
Parameters¶
- creds: Credentials val
- url': String val
- respository_url': String val
- labels_url': String val
- comments_url': String val
- events_url': String val
- html_url': String val
- number': I64 val
- title': String val
- user': User val
- labels': Array[Label val] val
- state': (String val | None val)
- body': (String val | None val)
- pull_request': (IssuePullRequest val | None val) = reference
Returns¶
- Issue val^
Public fields¶
let number: I64 val¶
let title: String val¶
let user: User val¶
let labels: Array[Label val] val¶
let state: (String val | None val)¶
let body: (String val | None val)¶
let pull_request: (IssuePullRequest val | None val)¶
let url: String val¶
let respository_url: String val¶
let labels_url: String val¶
let comments_url: String val¶
let events_url: String val¶
let html_url: String val¶
Public Functions¶
create_comment¶
Creates a new comment on this issue.
Parameters¶
- comment: String val
Returns¶
- Promise[(IssueComment val | RequestError val)] tag
get_comments¶
Fetches all comments on this issue.
Returns¶
- Promise[(Array[IssueComment val] val | RequestError val)] tag