提交 e4fb3219 编写于 作者: sinat_25235033's avatar sinat_25235033

check when closed issue

上级 bf90cda6
...@@ -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:
......
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
...@@ -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.
先完成此消息的编辑!
想要评论请 注册