Select the types of activity you want to include in your feed.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
···11<?php
2233/*
44- * Copyright 2011 Facebook, Inc.
44+ * Copyright 2012 Facebook, Inc.
55 *
66 * Licensed under the Apache License, Version 2.0 (the "License");
77 * you may not use this file except in compliance with the License.
···4848 private function getCommitPHIDs() {
4949 $revision = $this->getRevision();
5050 return $revision->getCommitPHIDs();
5151+ }
5252+5353+ public function renderValueForMail() {
5454+ $revision = $this->getRevision();
5555+5656+ if ($revision->getStatus() != ArcanistDifferentialRevisionStatus::CLOSED) {
5757+ return null;
5858+ }
5959+6060+ $phids = $revision->loadCommitPHIDs();
6161+ if (!$phids) {
6262+ return null;
6363+ }
6464+6565+ $body = array();
6666+ $handles = id(new PhabricatorObjectHandleData($phids))->loadHandles();
6767+ if (count($handles) == 1) {
6868+ $body[] = "COMMIT";
6969+ } else {
7070+ // This is unlikely to ever happen since we'll send this mail the
7171+ // first time we discover a commit, but it's not impossible if data
7272+ // was migrated, etc.
7373+ $body[] = "COMMITS";
7474+ }
7575+7676+ foreach ($handles as $handle) {
7777+ $body[] = ' '.PhabricatorEnv::getProductionURI($handle->getURI());
7878+ }
7979+8080+ return implode("\n", $body);
5181 }
52825383}