Page MenuHomePhabricator

Diffusion / Herald - tweak "Accepted Differential Revision exists" Herald field
ClosedPublic

Authored by btrahan on Aug 29 2014, 11:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 10:21 PM
Unknown Object (File)
Thu, Apr 25, 1:17 AM
Unknown Object (File)
Thu, Apr 11, 10:15 AM
Unknown Object (File)
Mar 31 2024, 3:16 AM
Unknown Object (File)
Mar 28 2024, 5:19 PM
Unknown Object (File)
Mar 24 2024, 11:41 AM
Unknown Object (File)
Mar 15 2024, 4:41 PM
Unknown Object (File)
Mar 5 2024, 5:54 PM

Details

Summary

make it use the value of the revision before any post-commit magic has occurred. Fixes T4754

Test Plan

made a herald rule that said "if revision exists, and revision accept does not exists, block push". tried to push a commit that had a revision that wasn't accepted and I was blocked.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan retitled this revision from to Diffusion / Herald - tweak "Accepted Differential Revision exists" Herald field.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

One inline.

src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
113–115

We should only write this if it isn't set yet.

Otherwise, reparsing a commit with scripts/repository/reparse.php will incorrectly overwrite it with "closed".

This revision is now accepted and ready to land.Sep 3 2014, 9:25 PM
btrahan edited edge metadata.

wrap the set in an if !get() so we only set it once

btrahan updated this revision to Diff 25047.

Closed by commit rP2f4addc67113 (authored by @btrahan).