mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
chore: actions
This commit is contained in:
parent
05201dd224
commit
4ab80dc2de
@ -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))
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user