Milestone

class github.Milestone.Milestone

This class represents Milestones. The reference can be found here http://developer.github.com/v3/issues/milestones/

closed_issues
Type:integer
created_at
Type:datetime.datetime
creator
Type:github.NamedUser.NamedUser
description
Type:string
due_on
Type:datetime.datetime
id
Type:integer
labels_url
Type:string
number
Type:integer
open_issues
Type:integer
state
Type:string
title
Type:string
updated_at
Type:datetime.datetime
url
Type:string
delete()
Calls:DELETE /repos/:owner/:repo/milestones/:number
Return type:None
edit(title, state=NotSet, description=NotSet, due_on=NotSet)
Calls:

PATCH /repos/:owner/:repo/milestones/:number

Parameters:
  • title – string
  • state – string
  • description – string
  • due_on – date
Return type:

None

get_labels()
Calls:GET /repos/:owner/:repo/milestones/:number/labels
Return type:github.PaginatedList.PaginatedList of github.Label.Label