mirror of
https://github.com/dorny/paths-filter.git
synced 2026-03-10 16:34:28 +00:00
fix: cast string to enum for comparison, lint finding
This commit is contained in:
parent
94e5765400
commit
7f506df3d1
@ -194,7 +194,7 @@ async function getChangedFilesFromApi(token: string, prNumber: PullRequest): Pro
|
||||
// There's no obvious use-case for detection of renames
|
||||
// Therefore we treat it as if rename detection in git diff was turned off.
|
||||
// Rename is replaced by delete of original filename and add of new filename
|
||||
if (row.status === ChangeStatus.Renamed) {
|
||||
if ((row.status as ChangeStatus) === ChangeStatus.Renamed) {
|
||||
files.push({
|
||||
filename: row.filename,
|
||||
status: ChangeStatus.Added
|
||||
|
||||
Loading…
Reference in New Issue
Block a user