fix
This commit is contained in:
parent
87f5690188
commit
d1aba02e40
10
.github/workflows/assign-to-project.yml
vendored
10
.github/workflows/assign-to-project.yml
vendored
|
@ -1,8 +1,10 @@
|
||||||
name: Auto Assign PRs to Project
|
name: Auto Assign PRs to Project
|
||||||
on:
|
on:
|
||||||
issues:
|
#issues:
|
||||||
types: [ opened ]
|
# types: [ opened ]
|
||||||
pull_request:
|
#pull_request:
|
||||||
|
# types: [ opened ]
|
||||||
|
pull_request_target:
|
||||||
types: [ opened ]
|
types: [ opened ]
|
||||||
|
|
||||||
# github-script: https://github.com/actions/github-script
|
# github-script: https://github.com/actions/github-script
|
||||||
|
@ -79,7 +81,7 @@ jobs:
|
||||||
if (event_name === 'issues') {
|
if (event_name === 'issues') {
|
||||||
content_type = 'Issue'
|
content_type = 'Issue'
|
||||||
}
|
}
|
||||||
if (event_name === 'pull_request') {
|
if (event_name === 'pull_request_target') {
|
||||||
content_type = 'PullRequest'
|
content_type = 'PullRequest'
|
||||||
}
|
}
|
||||||
if (!content_type) {
|
if (!content_type) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user