.github: correct the regex in mileston workflow

also use pull_request_target event so the action is run in the
context of the base of the pull request. this helps us to overcome
the "Resource not accessible by integration" issue where the action
is run in the context of the pull request.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-03-07 00:32:42 +08:00
parent 6a5ee1eee6
commit c5f6d15e36
2 changed files with 7 additions and 10 deletions

10
.github/milestone.yml vendored
View File

@ -1,6 +1,6 @@
base-branch:
- "luminous"
- "nautilus"
- "octopus"
- "pacific"
- "quincy"
- "(luminous)"
- "(nautilus)"
- "(octopus)"
- "(pacific)"
- "(quincy)"

View File

@ -1,9 +1,6 @@
---
name: "Pull Request Add Milestone"
on:
pull_request:
types:
- opened
name: "Pull Request Set Milestone"
on: pull_request_target
jobs:
milestone:
runs-on: ubuntu-latest