Skip to content

Commit

Permalink
Renamed Files decomposed into Deleted: previous_filename and Added:fi…
Browse files Browse the repository at this point in the history
…lename (#2236)

Co-authored-by: Tonye Jack <[email protected]>
  • Loading branch information
Whadup and jackton1 authored Aug 21, 2024
1 parent b4c0974 commit f8034fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/changedFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export const getChangedFilesFromGithubAPI = async ({

if (changeType === ChangeTypeEnum.Renamed) {
if (inputs.outputRenamedFilesAsDeletedAndAdded) {
changedFiles[ChangeTypeEnum.Deleted].push(item.filename)
changedFiles[ChangeTypeEnum.Deleted].push(item.previous_filename || '')
changedFiles[ChangeTypeEnum.Added].push(item.filename)
} else {
changedFiles[ChangeTypeEnum.Renamed].push(item.filename)
Expand Down

0 comments on commit f8034fb

Please sign in to comment.