Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sureness
Issues Translate Action
提交
e4fb3219
I
Issues Translate Action
项目概览
sureness
/
Issues Translate Action
通知
5
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
Issues Translate Action
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e4fb3219
编写于
11月 18, 2020
作者:
sinat_25235033
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
check when closed issue
上级
bf90cda6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
5 deletion
+5
-5
README.md
README.md
+2
-2
dist/index.js
dist/index.js
+0
-0
dist/index.js.map
dist/index.js.map
+0
-0
src/main.ts
src/main.ts
+3
-3
未找到文件。
README.md
浏览文件 @
e4fb3219
...
@@ -11,7 +11,7 @@ The action for translating non-English issues comment content to English.
...
@@ -11,7 +11,7 @@ The action for translating non-English issues comment content to English.
#### Create a workflow from this action
#### Create a workflow from this action
````
````
name: 'issue-
comment-
translator'
name: 'issue-translator'
on: [issues, issue_comment]
on: [issues, issue_comment]
jobs:
jobs:
...
@@ -37,7 +37,7 @@ jobs:
...
@@ -37,7 +37,7 @@ jobs:
4.
Create a workflow from this action
4.
Create a workflow from this action
````
````
name: 'issue-
comment-
translator'
name: 'issue-translator'
on: [issues, issue_comment]
on: [issues, issue_comment]
jobs:
jobs:
...
...
dist/index.js
浏览文件 @
e4fb3219
此差异由.gitattributes 抑制。
dist/index.js.map
浏览文件 @
e4fb3219
此差异由.gitattributes 抑制。
src/main.ts
浏览文件 @
e4fb3219
...
@@ -8,10 +8,10 @@ let franc = require('franc-min')
...
@@ -8,10 +8,10 @@ let franc = require('franc-min')
async
function
run
():
Promise
<
void
>
{
async
function
run
():
Promise
<
void
>
{
try
{
try
{
if
(
if
(
(
github
.
context
.
eventName
!==
'
issue_comment
'
&&
github
.
context
.
eventName
!=
'
issues
'
)
||
(
github
.
context
.
eventName
!==
'
issue_comment
'
||
github
.
context
.
payload
.
action
!==
'
created
'
)
&&
(
github
.
context
.
payload
.
action
!==
'
created
'
&&
github
.
context
.
payload
.
action
!==
'
opened
'
)
(
github
.
context
.
eventName
!=
'
issues
'
||
github
.
context
.
payload
.
action
!==
'
opened
'
)
)
{
)
{
core
.
setFailed
(
core
.
info
(
`The status of the action must be created on issue_comment, no applicable -
${
github
.
context
.
payload
.
action
}
on
${
github
.
context
.
eventName
}
, return`
`The status of the action must be created on issue_comment, no applicable -
${
github
.
context
.
payload
.
action
}
on
${
github
.
context
.
eventName
}
, return`
)
)
return
return
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录