Making WordPress.org


Ignore:
Timestamp:
12/31/2014 04:48:29 PM (10 years ago)
Author:
nacin
Message:

Slack: Add hooks for processing tickets/comments from Trac.

Location:
sites/trunk/svn.wordpress.org/includes/slack-trac-hooks
Files:
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/svn.wordpress.org/includes/slack-trac-hooks/commits.php

    r1075 r1078  
    11<?php
    22
    3 namespace SlackCommitHook;
     3namespace Dotorg\SlackTracHooks;
    44
    5 class Sender {
     5class Commits {
    66    protected $trac;
    77    protected $repo;
     
    2929    public function run() {
    3030        $payload = $this->generate_payload();
    31         foreach ( $this->trac->get_channels( $this->svnlook( 'changed' ) ) as $channel ) {
     31        foreach ( $this->trac->get_commit_channels( $this->svnlook( 'changed' ) ) as $channel ) {
    3232            $this->send( $channel, $payload );
    3333        }
     
    4646        $revision = 'r' . $this->rev;
    4747
    48         $username = $this->trac->get_username();
     48        $username = $this->trac->get_commit_username();
    4949        $emoji    = $this->trac->get_emoji();
    5050        $color    = $this->trac->get_color();
Note: See TracChangeset for help on using the changeset viewer.