Skip to content

Refactor sync scripts: extract shared code into common.sh and add PR mode#1

Open
Amoghrd wants to merge 2 commits into
netobserv:masterfrom
Amoghrd:update-sync-non-admin
Open

Refactor sync scripts: extract shared code into common.sh and add PR mode#1
Amoghrd wants to merge 2 commits into
netobserv:masterfrom
Amoghrd:update-sync-non-admin

Conversation

@Amoghrd

@Amoghrd Amoghrd commented Jul 16, 2026

Copy link
Copy Markdown
Member

Move duplicated code (repo arrays, push_or_pr, sanity checks, SED detection, confirm helper) into common.sh sourced by all scripts. Add -p flag for non-admin users to push to forks and create PRs instead of pushing directly to downstream. Replace hardcoded setup.sh clone blocks with loop over shared arrays.

Amoghrd and others added 2 commits July 16, 2026 10:31
…mode

Move duplicated code (repo arrays, push_or_pr, sanity checks, SED detection,
confirm helper) into common.sh sourced by all scripts. Add -p flag for
non-admin users to push to forks and create PRs instead of pushing directly
to downstream. Replace hardcoded setup.sh clone blocks with loop over
shared arrays.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Amoghrd

Amoghrd commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

cc @jotak

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

Successfully merging this pull request may close these issues.

1 participant