Commit 9b3f012 1 parent 63712dc commit 9b3f012 Copy full SHA for 9b3f012
File tree 2 files changed +13
-15
lines changed
src/plugins/github/plugins/github_reply
2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 25
25
from src .plugins .github .helpers import NO_GITHUB_EVENT
26
26
from src .plugins .github .libs .renderer import issue_to_image
27
27
from src .plugins .github .libs .github import ISSUE_REGEX , FULLREPO_REGEX
28
+ from src .plugins .github .dependencies import (
29
+ ISSUE ,
30
+ OPTIONAL_REPLY_TAG ,
31
+ GITHUB_PUBLIC_CONTEXT ,
32
+ )
28
33
from src .plugins .github .cache .message_tag import (
29
34
IssueTag ,
30
35
PullRequestTag ,
36
41
TargetType ,
37
42
extract_sent_message ,
38
43
)
39
- from src .plugins .github .dependencies import (
40
- ISSUE ,
41
- OPTIONAL_REPLY_TAG ,
42
- GITHUB_PUBLIC_CONTEXT ,
43
- bypass_key ,
44
- )
45
44
46
45
content = on_command (
47
46
"content" ,
@@ -79,7 +78,7 @@ async def parse_arg(
79
78
)
80
79
81
80
82
- @content .handle (parameterless = ( bypass_key ( "from_tag" ),) )
81
+ @content .handle ()
83
82
async def check_issue (state : T_State , issue : ISSUE ):
84
83
state ["issue_info" ] = issue
85
84
state ["is_pr" ] = bool (issue .pull_request )
Original file line number Diff line number Diff line change 2
2
@Author : yanyongyu
3
3
@Date : 2021-03-26 14:59:59
4
4
@LastEditors : yanyongyu
5
- @LastEditTime : 2023-12-11 18:12:12
5
+ @LastEditTime : 2023-12-15 10:37:34
6
6
@Description : None
7
7
@GitHub : https://github.com/yanyongyu
8
8
"""
26
26
from src .plugins .github .libs .renderer import pr_diff_to_image
27
27
from src .plugins .github .libs .github import ISSUE_REGEX , FULLREPO_REGEX
28
28
from src .plugins .github .cache .message_tag import PullRequestTag , create_message_tag
29
+ from src .plugins .github .dependencies import (
30
+ ISSUE ,
31
+ OPTIONAL_REPLY_TAG ,
32
+ GITHUB_PUBLIC_CONTEXT ,
33
+ )
29
34
from src .providers .platform import (
30
35
TARGET_INFO ,
31
36
MESSAGE_INFO ,
32
37
TargetType ,
33
38
extract_sent_message ,
34
39
)
35
- from src .plugins .github .dependencies import (
36
- ISSUE ,
37
- OPTIONAL_REPLY_TAG ,
38
- GITHUB_PUBLIC_CONTEXT ,
39
- bypass_key ,
40
- )
41
40
42
41
diff = on_command (
43
42
"diff" ,
@@ -72,7 +71,7 @@ async def parse_arg(
72
71
await diff .finish ("请发送要查看差异的 PR,例如:「/diff owner/repo#number」" )
73
72
74
73
75
- @diff .handle (parameterless = ( bypass_key ( "from_tag" ),) )
74
+ @diff .handle ()
76
75
async def check_issue (state : T_State , issue : ISSUE ):
77
76
if not issue .pull_request :
78
77
await diff .finish (
You can’t perform that action at this time.
0 commit comments