Skip to content

Commit

Permalink
fix resolve issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CTY-git committed Dec 5, 2024
1 parent 6f5a16e commit 537978c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions patchwork/patchflows/ResolveIssue/ResolveIssue.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from patchwork.common.utils.step_typing import validate_steps_with_inputs
from patchwork.step import Step
from patchwork.steps import PR, ReadIssues
from patchwork.steps import ResolveIssue as _ResolveIssue
from patchwork.steps import FixIssue

_DEFAULT_INPUT_FILE = Path(__file__).parent / "defaults.yml"

Expand All @@ -15,7 +15,7 @@ class ResolveIssue(Step):
def __init__(self, inputs: dict):
PatchflowProgressBar(self).register_steps(
ReadIssues,
_ResolveIssue,
FixIssue,
PR,
)
final_inputs = yaml.safe_load(_DEFAULT_INPUT_FILE.read_text()) or dict()
Expand All @@ -27,7 +27,7 @@ def __init__(self, inputs: dict):
validate_steps_with_inputs(
{"issue_description"}.union(final_inputs.keys()),
ReadIssues,
_ResolveIssue,
FixIssue,
PR,
)

Expand All @@ -36,7 +36,7 @@ def __init__(self, inputs: dict):
def run(self) -> dict:
outputs = ReadIssues(self.inputs).run()
self.inputs["issue_description"] = outputs
outputs = _ResolveIssue(self.inputs).run()
outputs = FixIssue(self.inputs).run()
self.inputs.update(outputs)
self.inputs["pr_header"] = f'This pull request from patchwork fixes {self.inputs["issue_url"]}.'
outputs = PR(self.inputs).run()
Expand Down

0 comments on commit 537978c

Please sign in to comment.