mirror of
https://github.com/dorny/paths-filter.git
synced 2026-06-29 04:30:43 +00:00
fix: cast string to enum for comparison, lint finding
This commit is contained in:
parent
94e5765400
commit
7f506df3d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue