chore: actions

This commit is contained in:
Anthony Fu 2020-12-09 13:50:33 +08:00
parent 05201dd224
commit 4ab80dc2de
2 changed files with 16 additions and 0 deletions

View File

@ -183,6 +183,13 @@ const action: Action = async(github, context, core) => {
labels: ['auto-generated'],
})
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pr.number,
labels: ['auto-generated'],
})
core.info('-----Pull Request-----')
core.info(JSON.stringify(pr, null, 2))

View File

@ -20,6 +20,15 @@ const action: Action = async(github, context, core) => {
const name = no.toString()
if (labels.includes('trigger-bot')) {
await github.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'trigger-bot',
})
}
if (labels.includes(name))
return