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

Simplified scripts for copying to jb-main #1407

Open
wants to merge 17 commits into
base: jb-main
Choose a base branch
from

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented Jun 14, 2024

Now we need only to switch to the commit, and call a needed script. It creates 2 branches, which can be tested on CI, and merged with simple git merge.

Branches:
image

@igordmn igordmn marked this pull request as draft June 14, 2024 02:29
@igordmn igordmn requested a review from MatkovIvan June 16, 2024 23:27
@igordmn igordmn marked this pull request as ready for review June 16, 2024 23:27
set -e

if [ -z "$1" ]; then
echo "Specify the snapping subfolder. For example: ./snapToJbMain.sh androidx/compose-ui/1.6.0-alpha02 compose ':(exclude)compose/material3'"
Copy link
Member

Choose a reason for hiding this comment

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

Description for args is not clear. What is branch? Out? In? Is it possible to specify hash? What is folder? What should be current git branch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This shouldn't be used explicitly. Added a comment to look the parent scripts/readme

scripts/snap/snapNavigation.sh Outdated Show resolved Hide resolved
scripts/snap/snapSavedstate.sh Outdated Show resolved Hide resolved
scripts/snap/snapLifecycle.sh Outdated Show resolved Hide resolved
scripts/snap/snapAnnotation.sh Outdated Show resolved Hide resolved
scripts/snap/snapCollection.sh Outdated Show resolved Hide resolved


TO_JB_MAIN_BRANCH=integration-snap/$CURRENT_COMMIT/to-jb-main
git checkout --quiet $(git merge-base $CURRENT_COMMIT origin/jb-main) -B $TO_JB_MAIN_BRANCH
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't work for my case: remote can have not "origin" name

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed. local branches should be up-to-date to this point anyway.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

local branches should be up-to-date to this point anyway.

Actually, I am wrong, all work can be done in "integration" without updating "jb-main".

Fixed reading the associated remote.

igordmn and others added 8 commits July 1, 2024 14:36
Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
@igordmn igordmn requested a review from MatkovIvan July 18, 2024 20:04
@igordmn
Copy link
Collaborator Author

igordmn commented Aug 5, 2024

Let's not merge it, as we are discussing to not use "snaps" anymore.

@igordmn igordmn closed this Aug 5, 2024
@igordmn igordmn changed the title Simplified scripts for snapping subfolders to jb-main Simplified scripts for snapping copying to jb-main Aug 30, 2024
@igordmn igordmn changed the title Simplified scripts for snapping copying to jb-main Simplified scripts for copying to jb-main Aug 30, 2024
@igordmn igordmn reopened this Aug 30, 2024
@igordmn
Copy link
Collaborator Author

igordmn commented Aug 30, 2024

These scripts still simplify process. I changed them for "copying" approach

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.

2 participants