Merge pull request #98 from hughrun/auto-commit-fix

Auto commit & ACT regression fixes
This commit is contained in:
Hugh Rundle 2021-02-01 20:00:24 +11:00 committed by GitHub
commit 9070588026
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -12,8 +12,8 @@ for (let name of contributors) {
for (let commit of eventJson.commits) { for (let commit of eventJson.commits) {
// we only look for authors, not commiters, so we automatically ignore "actions-user" // we only look for authors, not commiters, so we automatically ignore "actions-user"
if ( !contributors.includes(commit.author.name) ) { if ( !contributors.includes(commit.author.name) ) {
// auto-commits use my username, not my actual name // auto-commits for updating TopoJSON use 'Library Map Bot' as user
if (commit.author.name != 'hughrun') { if (commit.author.name != 'Library Map Bot') {
contributors.push(commit.author.name) contributors.push(commit.author.name)
} }
} }

View file

@ -29,6 +29,7 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v3
with: with:
author: Library Map Bot <librarymap@hugh.run>
commit-message: Update TopoJSON boundaries commit-message: Update TopoJSON boundaries
title: Update TopoJSON boundaries title: Update TopoJSON boundaries
body: 'Clean & minify GeoJSON; process to TopoJSON; merge library info csv to topo.' body: 'Clean & minify GeoJSON; process to TopoJSON; merge library info csv to topo.'

File diff suppressed because one or more lines are too long