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

chore: push current branch to remote #3455

Merged
merged 5 commits into from
Dec 12, 2024
Merged

chore: push current branch to remote #3455

merged 5 commits into from
Dec 12, 2024

Conversation

JoeWang1127
Copy link
Collaborator

@JoeWang1127 JoeWang1127 commented Dec 11, 2024

Fix error when updating googleapis commit in a new branch.

fatal: unknown commit origin/generate-libraries-main

Example run: https://github.com/googleapis/sdk-platform-java/actions/runs/12286920597/job/34287983045

@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Dec 11, 2024
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Dec 11, 2024
@JoeWang1127 JoeWang1127 marked this pull request as ready for review December 12, 2024 00:26
Copy link

sonarcloud bot commented Dec 12, 2024

Copy link

sonarcloud bot commented Dec 12, 2024

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@@ -102,7 +105,7 @@ fi

if [ -z "${pr_num}" ]; then
git remote add remote_repo https://cloud-java-bot:"${GH_TOKEN}@github.com/${repo}.git"
git fetch -q --unshallow remote_repo
git fetch -q remote_repo
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without this change, the script exit with error:

fatal: --unshallow on a complete repository does not make sense

@JoeWang1127 JoeWang1127 merged commit 18473a7 into main Dec 12, 2024
50 checks passed
@JoeWang1127 JoeWang1127 deleted the chore/push-branch branch December 12, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants