Page MenuHomePhabricator

Adding projects via arc diff
Closed, DuplicatePublic

Description

After T6819, I switched to using a 'Projects:' line in the arc commit messages to get projects to attach. I think it will be easier to train my users to switch to this manner if the message template had this line for them to fill in. So I was trying to fix this and ended up at /diffusion/P/browse/master/src/applications/differential/customfield/DifferentialProjectsField.php.

It looks like shouldAppearInCommitMessage() is actually true here already, but I don't see it come through in the message template.

So my main questions are:

  1. Is it intentional that I don't see 'Projects: ' in the message template?
  2. If so, is there an easy way to enable it?

Event Timeline

sshannin raised the priority of this task from to Needs Triage.
sshannin updated the task description. (Show Details)
sshannin added a subscriber: sshannin.

This is intentional. The method shouldAppearInCommitMessageTemplate() determines whether the field appears when it is empty.

There's no way to change this right now.

I'm going to merge this into T6030, which will provide easier access to options like this.