Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Forgot to change github_post to ->post(

  • Loading branch information...
commit 9bb8ed80473fdd98b7bf1aa9784891badb73d5f8 1 parent 0a77051
@danielbeardsley danielbeardsley authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 github.php
View
8 github.php
@@ -31,22 +31,22 @@ public function post($url, $json, $patch = false) {
}
public function add_milestone($data) {
- return json_decode(github_post("/repos/$this->repo/milestones",
+ return json_decode($this->post("/repos/$this->repo/milestones",
json_encode($data)), true);
}
public function add_issue($data) {
- return json_decode(github_post("/repos/$this->repo/issues",
+ return json_decode($this->post("/repos/$this->repo/issues",
json_encode($data)), true);
}
public function add_comment($issue, $body) {
- return json_decode(github_post("/repos/$this->repo/issues/$issue/comments",
+ return json_decode($this->post("/repos/$this->repo/issues/$issue/comments",
json_encode(array('body' => $body))), true);
}
public function update_issue($issue, $data) {
- return json_decode(github_post("/repos/$this->repo/issues/$issue",
+ return json_decode($this->post("/repos/$this->repo/issues/$issue",
json_encode($data), true), true);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.