drupalorg-cli
drupalorg-cli copied to clipboard
Contributors are no longer listed in release notes
The maintainer:release-notes
command no longer lists Contributors
.
Steps to reproduce:
git clone --branch '1.4.x' https://git.drupalcode.org/project/single_content_sync.git
cd single_content_sync
drupalorg mrn 1.4.2 1.4.3 -f md
Resulting output:
/Add a summary here/
Contributors (0)
Changelog
Issues: 6 issues resolved.
Changes since 1.4.2:
Bug
- #3366216: Added condition for hook_file_download and it will be working...
- #3395514: Fix PHPUnit tests failures
- #3395471: PHP 7.4 compatibility issue
Feature
- #3395455: Set up GitLab CI
Task
Expected output: There should be contributors listed.
Yes, the same thing for me. Also, they disappeared from the list of issues too, previously there was something like this:
I've debugged it a bit, seems this is because now the commit message is created by GitLab, and it misses the user names.
Here is the code to collect user names: https://github.com/mglaman/drupalorg-cli/blob/ea547b28ecbbfe8934195e5fb46b278c6c5c05e7/src/Cli/Command/Maintainer/ReleaseNotes.php#L299-L319
And it expects usernames listed in the commit message. So, no idea for now on how to fix this.
The commit message is created from the MR title, so to restore this feature seems we should manually list all issue contributors in the MR title like this:
Issue #NNN by user1, user2, user3: Issue title
But seems there are no automation implemented for this, I raised a question in Slack about this: https://drupal.slack.com/archives/CGKLP028K/p1706086503684919