Add a UI to change "role" values for each user in the footer
>>> [!note] Issue information <!-- Drupal.org comment --> <!-- Migrated from issue #3540547. --> From user: [dww](https://www.drupal.org/user/46549) [Contribution record](https://www.drupal.org/contribution-record?source_link=https://git.drupalcode.org/project/contribution_records/-/issues/3540547) [Fork management](https://www.drupal.org/drupalorg/issue-fork/management?source_link=https://git.drupalcode.org/project/contribution_records/-/issues/3540547) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>In conventional commit speak, anything at the bottom of the commit message, after the free-form body, is collectively the "footer". It's made up of lines with the form <code>&lt;token&gt;: &lt;value&gt;</code> (in their terminology, no relationship to Drupal tokens). The spec says that the token names must use <code>-</code>, not whitespace, before the <code>:</code>.</p> <p>For now in the new credit UI, for every participant in the issue, this always says:</p> <pre>Authored-by: &lt;no-reply-email&gt;</pre><p>So far so good. However, not everyone who contributes to an issue is a co-author. In fact, one of the main points of our peer review system (at least for core) is basically no issue is ever committed with only co-authors, there must always be at least 1 person who reviews who wasn't an author (nor the committer). In practice, there are often more reviewers on an issue than co-authors. It's not uncommon for there to be 1-3 authors, and 1-20 reviewers. &#128517;</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add a toggle for each row in the table to control the value of this "role" (also no relationship to Drupal roles) to use as the "token" for each user in the footer.</p> <p>Default options would be:</p> <ol> <li>Authored-by</li> <li>Reviewed-by</li> <li>Reported-by</li> </ol> <p>Not sure the cleanest way to handle "Committed-by", but maybe that "needs" to be here, too? Maybe that should be called "Merged-by"?</p> <p>Ideally, each row would default to "Authored-by" for anyone who pushed commits, and "Reviewed-by" for everyone else.</p> <p>If a reporter hasn't otherwise commented or pushed a commit, default to "Reported-by"?</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <ol> <li>Finalize the list of available footer token names for each user.</li> <li>Implement</li> <li>Reviews + testing</li> <li>Commit + deploy</li> <li> </ol> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3439331](https://www.drupal.org/node/3439331) > Related issue: [Issue #3543076](https://www.drupal.org/node/3543076)
issue