-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add scripted actions updates #226
Conversation
requires tweaking branch protection rules
Part of #14368 |
--method POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
/repos/OWNER/REPO/merge-upstream \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/repos/OWNER/REPO/merge-upstream \ | |
/repos/${FORK}/merge-upstream \ |
tried in my own namespace and the actions user can't do the changes required
|
requires tweaking branch protection rules
api docs https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#sync-a-fork-branch-with-the-upstream-repository
we'll need to allow the github actions bot to force push these repos (github-actions[bot]@users.noreply.github.com)
list from this api
gh api --paginate -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" '/orgs/GeoNet/repos?type=fork' | jq -r '.[].full_name