Skip to content

Add a script to copy a branch to another branch in all our rpm repositories - #790

Merged
glehmann merged 2 commits into
masterfrom
gln/add-rpm-copy-script-zlnu
Aug 14, 2026
Merged

glehmann merged 2 commits into
masterfrom
gln/add-rpm-copy-script-zlnu

Conversation

@glehmann

@glehmann glehmann commented Mar 11, 2026 •

Copy link
Copy Markdown
Member

And also move the PR destination branch matching the old branch to the new branch

@glehmann glehmann changed the title Gln/add rpm copy script zlnu Add a script to copy a branch to another branch in all our rpm repositories Mar 11, 2026
@glehmann
glehmann force-pushed the gln/add-rpm-copy-script-zlnu branch 2 times, most recently from bf07a39 to ecdb33f Compare March 12, 2026 10:05
@stormi

stormi commented Jun 22, 2026

Copy link
Copy Markdown
Member

@glehmann If still useful let's ask the team for review.

@glehmann
glehmann requested a review from a team July 15, 2026 15:51

@olivierh-pro olivierh-pro left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I would have wrapped it in a :

if __name__ == "__main__":
    main()

@vxgmichel vxgmichel left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Just a couple of stylistic suggestions, feel free to ignore if they don't feel like an improvement.

Also I agree with @olivierh-pro about the use of if __name__ == "__main__":, for the reason I formulated here:

Some tools might try to import modules as part of their discovery process, and it's hard to know exactly which ones are going to run in this repository (considering that each developer might use different tools).

Comment thread scripts/rpm_owners/copy_branch.py Outdated
Comment thread scripts/rpm_owners/copy_branch.py Outdated
Comment thread scripts/rpm_owners/copy_branch.py Outdated
Comment thread scripts/rpm_owners/copy_branch.py Outdated
…tories

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
@glehmann
glehmann force-pushed the gln/add-rpm-copy-script-zlnu branch from ecdb33f to a19a828 Compare August 14, 2026 09:48

@vxgmichel vxgmichel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All my comments have been addressed, re-approving for good measure 👍

@glehmann
glehmann merged commit de3f1a8 into master Aug 14, 2026
3 checks passed
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.

4 participants