Skip to content

Commit

Permalink
add condition
Browse files Browse the repository at this point in the history
  • Loading branch information
CTY-git committed Apr 12, 2024
1 parent c8ae63c commit 2ce2f8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions patchwork/steps/ReadPRDiffs/ReadPRDiffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def __init__(self, inputs: dict):
def run(self) -> dict:
prompt_values = []
for path, diffs in self.pr.file_diffs().items():
if filter_by_extension(path, _IGNORED_EXTENSIONS):
continue
prompt_values.append(dict(path=path, diff=diffs))

prompt_value_file = tempfile.mktemp(".json")
Expand Down

0 comments on commit 2ce2f8e

Please sign in to comment.