-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to open PR in another repository #76
Comments
You should be able to do this, but you’ll need to use a personal access token. |
Thanks for your quick reply! |
Use the environment variable PULL_REQUEST_REPOSITORY. Did you look at the README at all? https://github.com/vsoch/pull-request-action |
Yes I did, and I tried it without success. Anyway, after reviewing GitHub API docs, I might be able to make it work with a combination of This use case would be worth documenting in your README. |
I managed to make it work 🥳 Here is the pipeline I set up on the source repo ( name: Commit forward
on:
push:
branches: ['4.3']
jobs:
commit-forward:
name: PullRequestAction
runs-on: ubuntu-latest
steps:
- name: pull-request-action
uses: vsoch/pull-request-action@master
env:
GITHUB_TOKEN: ${{ secrets.FORWARD_TOKEN }}
# source
PULL_REQUEST_FROM_BRANCH: "fbiville:4.3"
# target
PULL_REQUEST_REPOSITORY: fbiville-testing/commit-fwd-source-repo
PULL_REQUEST_BRANCH: "4.3" This forwards every commit as PR from the |
For consistency's sake, it might be worth adding a |
@fbiville you don’t get to dictate that - the token decides. I’m not sure I see your logic here. |
What I'm trying to suggest is to allow both the current form:
and an alternative way:
My PAT does not limit me to only github.com/fbiville, or? I could push to repositories of other organizations I'm part of, or am I mistaken? |
Ah I understand. That would only work if you trigger the workflow for any repository in an organization. How would you do that for one workflow? |
I'm already doing this to sync https://github.com/fbiville/commit-fwd-source-repo (where the above configuration lives) and its fork https://github.com/fbiville-testing/commit-fwd-source-repo. |
No description provided.
The text was updated successfully, but these errors were encountered: