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>
(cherry picked from commit
c5f6d15e36fdd019196a1520525382f73f276f14)
base-branch:
- - "luminous"
- - "nautilus"
- - "octopus"
- - "pacific"
- - "quincy"
+ - "(luminous)"
+ - "(nautilus)"
+ - "(octopus)"
+ - "(pacific)"
+ - "(quincy)"
---
-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