| @@ 12-37 (lines=26) @@ | ||
| 9 | * A build system, CI tool, or another vendor recognizes that a user recently |
|
| 10 | * pushed a commit and updates the commit with its status. |
|
| 11 | */ |
|
| 12 | class RepoCommitStatusCreatedModel extends ModelBase |
|
| 13 | { |
|
| 14 | /** |
|
| 15 | * @return array |
|
| 16 | */ |
|
| 17 | public function getActor() |
|
| 18 | { |
|
| 19 | return $this->payload['actor']; |
|
| 20 | } |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @return array |
|
| 24 | */ |
|
| 25 | public function getRepository() |
|
| 26 | { |
|
| 27 | return $this->payload['repository']; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @return array |
|
| 32 | */ |
|
| 33 | public function getCommitStatus() |
|
| 34 | { |
|
| 35 | return $this->payload['commit_status']; |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||
| @@ 12-37 (lines=26) @@ | ||
| 9 | * A build system, CI tool, or another vendor recognizes that a commit has |
|
| 10 | * a new status and updates the commit with its status. |
|
| 11 | */ |
|
| 12 | class RepoCommitStatusUpdatedModel extends ModelBase |
|
| 13 | { |
|
| 14 | /** |
|
| 15 | * @return array |
|
| 16 | */ |
|
| 17 | public function getActor() |
|
| 18 | { |
|
| 19 | return $this->payload['actor']; |
|
| 20 | } |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @return array |
|
| 24 | */ |
|
| 25 | public function getRepository() |
|
| 26 | { |
|
| 27 | return $this->payload['repository']; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @return array |
|
| 32 | */ |
|
| 33 | public function getCommitStatus() |
|
| 34 | { |
|
| 35 | return $this->payload['commit_status']; |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||