Skip to content
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

Create a Pull Request on a separate repository. #667

Open
vinibosch opened this issue Mar 11, 2024 · 1 comment
Open

Create a Pull Request on a separate repository. #667

vinibosch opened this issue Mar 11, 2024 · 1 comment

Comments

@vinibosch
Copy link

Hello, do you have any plans to add support for creating Pull Requests on a different repository?

@gr2m
Copy link
Owner

gr2m commented Mar 11, 2024

You can do that already today, you just have to checkout the repository where you want to create the pull request. You can't do that with the provided secrets.GITHUB_TOKEN as it's scoped to only the current repository, I recommend to register a GitHub app with contents:write and pull_requests:write permissions and then use https://github.com/actions/create-github-app-token to create a token and use that token in actions/checkout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants