NAME
Pithub::Issues
VERSION
version 0.01000
METHODS
create
Create an issue
POST /repos/:user/:repo/issues
Examples:
$result = $p->issues->create(
user => 'plu',
repo => 'Pithub',
data => {
assignee => 'octocat',
body => "I'm having a problem with this.",
labels => [ 'Label1', 'Label2' ],
milestone => 1,
title => 'Found a bug'
}
);
get
Get a single issue
GET /repos/:user/:repo/issues/:id
Examples:
$result = $p->issues->get(
user => 'plu',
repo => 'Pithub',
issue_id => 1,
);
list
List issues for a repository
GET /repos/:user/:repo/issues
Examples:
$result = $p->issues->list(
user => 'plu',
repo => 'Pithub',
);
update
Edit an issue
PATCH /repos/:user/:repo/issues/:id
Examples:
$result = $p->issues->update(
user => 'plu',
repo => 'Pithub',
issue_id => 1,
data => {
assignee => 'octocat',
body => "I'm having a problem with this.",
labels => [ 'Label1', 'Label2' ],
milestone => 1,
state => 'open',
title => 'Found a bug'
}
);