The land endpoint requires these fields now.
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC19491d131486: [land-bot] Pass committer name/email to land bot endpoint
Used to land D6796:
arc land-via-bot --revision D6796
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- land-via-bot-committer-info
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Event Timeline
arcanist/workflow/ArcanistLandBotWorkflow.php | ||
---|---|---|
151 ↗ | (On Diff #21936) | You can use arcanist getAuthor() method: https://secure.phabricator.com/diffusion/ARC/browse/master/src/repository/api/ArcanistGitAPI.php$798 |
arcanist/workflow/ArcanistLandBotWorkflow.php | ||
---|---|---|
151 ↗ | (On Diff #21936) | The author is never the committer in the case of backports. Unfortunately there does not appear to be an API for getting committer info via Arcanist. |
arcanist/workflow/ArcanistLandBotWorkflow.php | ||
---|---|---|
151 ↗ | (On Diff #21936) | Weird, I tried git var GIT_AUTHOR_IDENT and it always return my name (independendly of the commit). Anyway, it might be intersting to evaluate if the reason why they switched to use this variable (see https://secure.phabricator.com/rARC6cb8d483b23c132da4c82934438cd1af0e5ba32b) is applicable for us. |
Use Arcanist's repository API as much as possible even though there is no direct
call for committer info.
arcanist/workflow/ArcanistLandBotWorkflow.php | ||
---|---|---|
156 | There is a GIT_COMMITER_IDENT which better fit your intent here according to the documentation. |
Use GIT_COMMITTER_IDENT directly for both name and email. This no longer
uses any part of the Arcanist API, but is heavily influenced from their code.