From 65b3d2a70b59c602d5d8c0a86f4ed3fb4e653461 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Mon, 1 Feb 2021 19:47:36 +1100 Subject: [PATCH] fix commiter name on topo update action --- .github/scripts/contributors.js | 4 ++-- .github/workflows/minify-map-json.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/scripts/contributors.js b/.github/scripts/contributors.js index 8ff15d0..54d1481 100644 --- a/.github/scripts/contributors.js +++ b/.github/scripts/contributors.js @@ -12,8 +12,8 @@ for (let name of contributors) { for (let commit of eventJson.commits) { // we only look for authors, not commiters, so we automatically ignore "actions-user" if ( !contributors.includes(commit.author.name) ) { - // auto-commits use my username, not my actual name - if (commit.author.name != 'hughrun') { + // auto-commits for updating TopoJSON use 'Library Map Bot' as user + if (commit.author.name != 'Library Map Bot') { contributors.push(commit.author.name) } } diff --git a/.github/workflows/minify-map-json.yml b/.github/workflows/minify-map-json.yml index eb4050f..ede0ea1 100644 --- a/.github/workflows/minify-map-json.yml +++ b/.github/workflows/minify-map-json.yml @@ -29,6 +29,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: + author: Library Map Bot commit-message: Update TopoJSON boundaries title: Update TopoJSON boundaries body: 'Clean & minify GeoJSON; process to TopoJSON; merge library info csv to topo.'