Skip to content

Commit

Permalink
fix: email naming consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage committed Dec 4, 2023
1 parent e7fdc62 commit e02f241
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> {
async createCommit(blobs: Blob[], message: string, botEmail: string, sha: string): Promise<string> {
// Create a tree which defines the folder structure
logger.debug({ sha }, 'GitHub API: Create Tree');
const treeRes = await this.octokit.rest.git.createTree({
Expand All @@ -136,7 +136,7 @@ export class GithubApi {
message,
author: {
name: 'linz-li-bot',
email: authorEmail,
email: botEmail,
},
parents: [sha],
tree: treeSha,
Expand Down Expand Up @@ -191,7 +191,7 @@ export async function createPR(
gh: GithubApi,
branch: string,
title: string,
authorEmail: string,
botEmail: string,
files: GithubFiles[],
): Promise<number> {
// git checkout -b
Expand All @@ -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');
Expand Down

0 comments on commit e02f241

Please sign in to comment.