IssueHandler

class baldrick.github.IssueHandler(repo, number, installation=None)

Bases: baldrick.github.github_api.GitHubHandler

Attributes Summary

is_closed

Is the issue closed?

json

labels

Get labels for this issue

Methods Summary

close()

find_comments(login[, filter_keep])

Find comments by a given user.

get_label_added_date(label)

Get last added date for a label.

last_comment_date(login[, filter_keep])

Find the last date on which a comment was made.

set_labels(labels)

Set label(s) to issue

submit_comment(body[, comment_id, return_url])

Submit a comment to the pull request

Attributes Documentation

is_closed

Is the issue closed?

json
labels

Get labels for this issue

Methods Documentation

close()
find_comments(login, filter_keep=None)

Find comments by a given user.

get_label_added_date(label)

Get last added date for a label. If label is re-added, the last time it was added is the one.

Parameters

label (str) – Issue label.

Returns

t – Unix timestamp, if available.

Return type

float or None

last_comment_date(login, filter_keep=None)

Find the last date on which a comment was made.

set_labels(labels)

Set label(s) to issue

submit_comment(body, comment_id=None, return_url=False)

Submit a comment to the pull request

Parameters
  • body (str) – The comment

  • comment_id (int) – If specified, the comment with this ID will be replaced

  • return_url (bool) – Return URL of posted comment.

Returns

url – URL of the posted comment, if requested.

Return type

str or None