Is there a way to have PR from external contributor to work? #63
-
When I get PR from forks, I get this error.
|
Beta Was this translation helpful? Give feedback.
Answered by
leonsteinhaeuser
Apr 23, 2023
Replies: 2 comments 7 replies
-
Here is the yaml code:
|
Beta Was this translation helpful? Give feedback.
7 replies
-
The code below is working. name: Project automations
on:
pull_request_target:
types:
- opened
branches:
- 'master'
# map fields with customized labels
env:
in_review: In Review
jobs:
pr_opened:
name: pr_opened
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target' && github.event.action == 'opened'
steps:
- name: Move PR to ${{ env.in_review }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
# user: ghostbsd
organization: ghostbsd
project_id: 4
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: ${{ env.in_review }} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ericbsd have you tried
pull_request_target
instead ofpull_request
?