Update process har and readme

This commit is contained in:
a76yyyy 2023-06-03 12:48:08 +08:00
parent ac5b039f62
commit 4b77dfc6b4
3 changed files with 11 additions and 11 deletions

View File

@ -8,7 +8,7 @@ body:
attributes:
label: HAR 模板名称
description: |
请提供 HAR 文件的命名, 空格请用下划线代替, 允许中文
请提供 HAR 文件的命名, 空格请用下划线代替, 允许中文, 请勿使用括号等特殊字符
placeholder: "Example_HARNAME"
validations:
required: true
@ -17,7 +17,7 @@ body:
attributes:
label: 作者信息
description: |
请提供 HAR 文件的作者名或昵称, 用英文逗号 `,` 分隔多个作者
请提供 HAR 文件的作者名或昵称, 用英文逗号 `,` 分隔多个作者, 请勿使用括号等特殊字符
placeholder: "Example_Author1, Example_Author2"
validations:
required: false
@ -26,13 +26,13 @@ body:
attributes:
label: 模板备注及说明
description: |
HAR 文件的备注信息及说明, 选填
HAR 文件的备注信息及说明, 选填, 请勿使用英文括号等特殊字符, 如需括号请使用中文括号
- type: input
id: filename
attributes:
label: HAR 文件名
description: |
请提供 HAR 文件的文件名, 含 `.har` 后缀, 允许中文
请提供 HAR 文件的文件名, 含 `.har` 后缀, 允许中文, 请勿使用括号等特殊字符
placeholder: "Example_HARNAME.har"
- type: textarea
id: har_content
@ -46,5 +46,5 @@ body:
attributes:
label: 其他信息
description: |
请提供其他信息, 例如: 对于 Issue 的其他说明, 选填
请提供其他信息, 例如: 对于 Issue 的其他说明, 选填, 请勿使用英文括号等特殊字符, 如需括号请使用中文括号
render: Markdown

View File

@ -48,7 +48,7 @@ if len(issue_json) > 0 and 'name' in issue_json and 'author' in issue_json and '
'author': issue_json['author'],
'url': 'https://raw.githubusercontent.com/'+ repo_full_name + '/' + repo_default_branch + '/' + issue_json['filename'],
'update': update,
'comments': issue_json.get('comments','').replace('\\r', '\r').replace('\\n', '\n').replace('\r','').replace('\n','<br>'),
'comments': issue_json.get('comments','').replace('\\r', '\r').replace('\\n', '\n').replace('\r','').replace('\n','<br>').strip(),
'filename': issue_json['filename'],
'content': base64.b64encode(content_jsonstring.encode('utf8')).decode('utf8'),
'date': hfile['har'][issue_json['name']]['date'] if update else time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()),

View File

@ -49,19 +49,19 @@ Tips:
> ~~~markdown
> ### HAR 模板名称
>
> 请将此行替换为**模板名称** ( HAR 文件的命名, 空格请用下划线代替, 允许中文)
> 请将此行替换为**模板名称** ( HAR 文件的命名, 空格请用下划线代替, 允许中文, 请勿使用括号等特殊字符)
>
> ### 作者信息
>
> 请将此行替换为**作者信息** ( HAR 文件的作者名或昵称, 用英文逗号 `,` 分隔多个作者)
> 请将此行替换为**作者信息** ( HAR 文件的作者名或昵称, 用英文逗号 `,` 分隔多个作者, 请勿使用括号等特殊字符)
>
> ### 模板备注及说明
>
> 请在此输入模板备注及说明 ( HAR 文件的备注及说明, 直接换行即可, 无需<br>)
> 请在此输入模板备注及说明 ( HAR 文件的备注及说明, 直接换行即可, 无需<br>, 请勿使用英文括号等特殊字符, 如需括号请使用中文括号)
>
> ### HAR 文件名
>
> 请将此行替换为 **HAR 文件名** ( HAR 文件的文件名, 含 `.har` 后缀, 允许中文)
> 请将此行替换为 **HAR 文件名** ( HAR 文件的文件名, 含 `.har` 后缀, 允许中文, 请勿使用括号等特殊字符)
>
> ### HAR 模板内容
>
@ -71,7 +71,7 @@ Tips:
>
> ### 其他信息
>
> 选填, 可以在此输入其他信息 (例如: 对于 Issue 的其他说明)
> 请在此输入其他信息, 选填, 例如: 对于 Issue 的其他说明 ( 请勿使用英文括号等特殊字符, 如需括号请使用中文括号)
>
> ~~~
>