From e02f241940f3a35ab614a1d8fb1b8f0aaed36bcf Mon Sep 17 00:00:00 2001 From: Alice Fage Date: Mon, 4 Dec 2023 15:03:20 +1300 Subject: [PATCH] fix: email naming consistency --- src/utils/github.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/github.ts b/src/utils/github.ts index fca20a99..9081ceaf 100644 --- a/src/utils/github.ts +++ b/src/utils/github.ts @@ -115,7 +115,7 @@ export class GithubApi { /** * Create a file imagery config file into basemaps-config/config/imagery and commit */ - async createCommit(blobs: Blob[], message: string, authorEmail: string, sha: string): Promise { + async createCommit(blobs: Blob[], message: string, botEmail: string, sha: string): Promise { // Create a tree which defines the folder structure logger.debug({ sha }, 'GitHub API: Create Tree'); const treeRes = await this.octokit.rest.git.createTree({ @@ -136,7 +136,7 @@ export class GithubApi { message, author: { name: 'linz-li-bot', - email: authorEmail, + email: botEmail, }, parents: [sha], tree: treeSha, @@ -191,7 +191,7 @@ export async function createPR( gh: GithubApi, branch: string, title: string, - authorEmail: string, + botEmail: string, files: GithubFiles[], ): Promise { // git checkout -b @@ -212,7 +212,7 @@ export async function createPR( // git commit logger.info({ branch }, 'GitHub: Commit to Branch'); - const commitSha = await gh.createCommit(blobs, title, authorEmail, sha); + const commitSha = await gh.createCommit(blobs, title, botEmail, sha); // git push logger.info({ branch }, 'GitHub: Push commit to Branch');