File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ class PRInputs(__PRInputsRequired, total=False):
22
22
force_pr_creation : Annotated [bool , StepTypeConfig (is_config = True )]
23
23
disable_pr : Annotated [bool , StepTypeConfig (is_config = True )]
24
24
scm_url : Annotated [str , StepTypeConfig (is_config = True )]
25
- gitlab_api_key : Annotated [str , StepTypeConfig (is_config = True , or_op = [ "github_api_key" ] )]
26
- github_api_key : Annotated [str , StepTypeConfig (is_config = True , or_op = [ "gitlab_api_key" ] )]
25
+ gitlab_api_key : Annotated [str , StepTypeConfig (is_config = True )]
26
+ github_api_key : Annotated [str , StepTypeConfig (is_config = True )]
27
27
28
28
29
29
class PROutputs (TypedDict ):
Original file line number Diff line number Diff line change @@ -42,24 +42,25 @@ def run(self) -> dict:
42
42
continue
43
43
44
44
placeholder_inner_text = path
45
- if start_line is not None and end_line is not None :
46
- placeholder_inner_text = f"{ path } :{ start_line + 1 } :{ end_line } "
47
- chunk_link = "{{" + placeholder_inner_text + "}}"
45
+ # TODO: consider dealing with line numbers exceeding diff chunk
46
+ # if start_line is not None and end_line is not None:
47
+ # placeholder_inner_text = f"{path}:{start_line+1}:{end_line}"
48
+ # chunk_link = "{{" + placeholder_inner_text + "}}"
48
49
49
50
if title != "" and patch_msg == "" :
50
51
expandable = f"\n { title .strip ()} "
51
52
elif title == "" and patch_msg != "" :
52
53
expandable = (
53
54
f"<details>"
54
- f"<summary>[ { placeholder_inner_text } ]( { chunk_link } ) </summary>"
55
+ f"<summary>{ placeholder_inner_text } </summary>"
55
56
f"{ indent (patch_msg .strip (), ' ' )} "
56
57
f"</details>"
57
58
)
58
59
else :
59
60
# when both title and patch_msg are present
60
61
expandable = (
61
62
f"<details>"
62
- f"<summary>[ { title .strip ()} ]( { chunk_link } ) </summary>"
63
+ f"<summary>{ title .strip ()} </summary>"
63
64
f"{ indent (patch_msg .strip (), ' ' )} "
64
65
f"</details>"
65
66
)
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " patchwork-cli"
3
- version = " 0.0.38 "
3
+ version = " 0.0.39 "
4
4
description = " "
5
5
authors = [" patched.codes" ]
6
6
license = " AGPL"
You can’t perform that action at this time.
0 commit comments