1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-02-25 02:46:01 +01:00

Set authors to commit message

This commit is contained in:
Alex Plate 2021-05-21 10:36:29 +03:00 committed by Alex Plate
parent 6d238b382f
commit 117990cd46
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F
2 changed files with 5 additions and 1 deletions

View File

@ -25,12 +25,13 @@ jobs:
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Update authors
id: update_authors
run: ./gradlew updateAuthors
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update contributors list
commit_message: Add ${{ steps.update_authors.outputs.authors }} to contributors list
commit_user_name: Alex Plate
commit_user_email: aleksei.plate@jetbrains.com
commit_author: Alex Plate <aleksei.plate@jetbrains.com>

View File

@ -285,6 +285,9 @@ fun updateAuthors(uncheckedEmails: Set<String>) {
val newAuthors = users.filterNot { it.mail in existingEmails }
if (newAuthors.isEmpty()) return
val authorNames = newAuthors.joinToString(", ") { it.name }
println("::set-output name=authors::$authorNames")
val insertionString = newAuthors.toMdString()
val resultingString = StringBuffer(authors).insert(contributorsSection.endOffset, insertionString).toString()