@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
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow Phabricator to parse bare revision IDs from "Differential Revision:" fields

Summary: Fixes T8087. Depends on D12748.

Test Plan: See D12748.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: cburroughs, epriestley

Maniphest Tasks: T8087

Differential Revision: https://secure.phabricator.com/D12749

+8
+8
src/applications/differential/customfield/DifferentialRevisionIDField.php
··· 32 32 } 33 33 34 34 public function parseValueFromCommitMessage($value) { 35 + // If the value is just "D123" or similar, parse the ID from it directly. 36 + $value = trim($value); 37 + $matches = null; 38 + if (preg_match('/^[dD]([1-9]\d*)\z/', $value, $matches)) { 39 + return (int)$matches[1]; 40 + } 41 + 42 + // Otherwise, try to extract a URI value. 35 43 return self::parseRevisionIDFromURI($value); 36 44 } 37 45