Skip to content

Commit

Permalink
Ignore yml for now
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Apr 12, 2024
1 parent 88aa59f commit e43b9b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29123,7 +29123,7 @@ function findTodos(prDiff) {
const todos = prDiff
.map(file => {
const patch = file.patch;
if (patch === undefined)
if (patch === undefined || file.filename.endsWith('.yml'))
return;
const lines = patch.split('\n');
if (lines === undefined || lines.length === 0)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function findTodos(prDiff: PrDiff): Todo[] {
const todos: Todo[] = prDiff
.map(file => {
const patch = file.patch
if (patch === undefined) return
if (patch === undefined || file.filename.endsWith('.yml')) return

const lines = patch.split('\n')
if (lines === undefined || lines.length === 0) return
Expand Down

0 comments on commit e43b9b9

Please sign in to comment.