1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-13 23:38:34 +01:00
phorge-phorge/src/applications/repository/worker
epriestley 4450c90881 When triggering audits, respect committer identities when importing commits
Summary:
Ref T13311. We currently don't use committer identity mappings when triggering audits, so if a user is only associated with an identity via manual mapping we won't treat them as the author.

Instead, use the identity and manual mapping if they're available.

Test Plan:
  - Pushed a commit as `xyz <xyz@example.org>`, an address with no corresponding user.
  - In the UI, manually associated that identity with user `@alice`.
  - Ran `bin/repository reparse --publish <hash>` to trigger audits and publishing for the commit.
  - Before: observed the `$author_phid` was `null`.
  - After: observed the `$author_phid` is Alice.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13311

Differential Revision: https://secure.phabricator.com/D20580
2019-06-17 13:47:31 -07:00
..
__tests__ Remove diffusion.getcommits Conduit API method 2016-01-04 06:53:45 -08:00
commitchangeparser Merge the "Herald" and "Owners" daemon workers into a single "Publish" worker 2019-04-25 09:45:59 -07:00
commitmessageparser Remove nearly all remaining references to "Autoclose" 2019-04-24 08:29:41 -07:00
PhabricatorRepositoryCommitParserWorker.php Migrate the "badcommit" table to use the less-hacky "hint" mechanism 2016-08-24 09:32:59 -07:00
PhabricatorRepositoryCommitPublishWorker.php When triggering audits, respect committer identities when importing commits 2019-06-17 13:47:31 -07:00
PhabricatorRepositoryIdentityChangeWorker.php Assign RepositoryIdentity objects to commits 2018-05-31 07:28:23 -07:00
PhabricatorRepositoryPushMailWorker.php Remove nearly all remaining references to "Autoclose" 2019-04-24 08:29:41 -07:00