コード例 #1
0
 /**
  * Event for after test is submitted in the application.
  *
  * @param   Event  $event  The Event object.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function onTestAfterSubmit(Event $event)
 {
     // Pull the arguments array
     $arguments = $event->getArguments();
     $status = $this->getStatus($arguments['project'], $arguments['data']->testsSuccess, $arguments['data']->testsFailure, $arguments['issueNumber']);
     $this->createStatus($arguments['github'], $arguments['project'], $arguments['issueNumber'], $status);
 }
コード例 #2
0
 /**
  * Event for after Comments requests are updated in the application
  *
  * @param   Event  $event  Event object
  *
  * @return  void
  *
  * @since   1.0
  */
 public function onCommentAfterUpdate(Event $event)
 {
     // Pull the arguments array
     $arguments = $event->getArguments();
     // Add a RTC label if the item is in that status
     $this->checkRTClabel($arguments['hookData'], $arguments['github'], $arguments['logger'], $arguments['project'], $arguments['table']);
 }
コード例 #3
0
 /**
  * Event for after pull requests are updated in the application
  *
  * @param   Event  $event  Event object
  *
  * @return  void
  *
  * @since   1.0
  */
 public function onPullAfterUpdate(Event $event)
 {
     // Pull the arguments array
     $arguments = $event->getArguments();
     // Place the JoomlaCode ID in the issue title if it isn't already there
     $this->updatePullTitle($arguments['hookData'], $arguments['github'], $arguments['logger'], $arguments['project'], $arguments['table']);
     // Add a RTC label if the item is in that status
     $this->addRTClabel($arguments['hookData'], $arguments['github'], $arguments['logger'], $arguments['project'], $arguments['table']);
 }
コード例 #4
0
 /**
  * Event for after issues are created in the application
  *
  * @param   Event  $event  Event object
  *
  * @return  void
  *
  * @since   1.0
  */
 public function onIssueAfterCreate(Event $event)
 {
     // Pull the arguments array
     $arguments = $event->getArguments();
     // Only perform these events if this is a new issue, action will be 'opened'
     if ($arguments['action'] === 'opened') {
         // Add a "no code" label
         $this->addCodelabel($arguments['hookData'], $arguments['github'], $arguments['logger'], $arguments['project']);
     }
 }