Skip to content

Conversation

@BrigittaK307
Copy link
Contributor

Fixed auto merge condition and changed settimeout to https://www.npmjs.com/package/async-retry
library.

}
if (!allAcceptable) {
throw new Error(`PR #${pr.number} has failed checks that prevent merging.`);
Copy link
Contributor

Choose a reason for hiding this comment

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

[req] In such case, retry won't change anything right? We can already return something like 'failed' here and let the workflow finish.

Copy link
Contributor

Choose a reason for hiding this comment

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

Log an error here. Don't throw. Throw will immediately jump out of the function and it will never reach the return.

}
if (!allAcceptable) {
throw new Error(`PR #${pr.number} has failed checks that prevent merging.`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Log an error here. Don't throw. Throw will immediately jump out of the function and it will never reach the return.

git config --global user.email "[email protected]"
git config --global user.name "cloud-sdk-js"
git checkout -b "bot/monthly-transitive-dependency-update-$(date +%Y-%m-%d)"
BRANCH_NAME="bot/monthly-transitive-dependency-update-$(date -u +%Y-%m-%d-%H%M%S)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
BRANCH_NAME="bot/monthly-transitive-dependency-update-$(date -u +%Y-%m-%d-%H%M%S)"
BRANCH_NAME="bot/monthly-transitive-dependency-update-$(date -u +%Y%m%d-%H%M%S)"

github-token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}
script: |
const { repo, owner } = context.repo;
const branch = `bot/monthly-transitive-dependency-update-${new Date().toISOString().split('T')[0]}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Now we changed the branch name and included H M S, we should probably also change this line or?

Copy link
Contributor

@ZhongpinWang ZhongpinWang left a comment

Choose a reason for hiding this comment

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

One comment still not resolved.

Copy link
Contributor

@ZhongpinWang ZhongpinWang left a comment

Choose a reason for hiding this comment

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

Thanks! Look good to me.

@ZhongpinWang ZhongpinWang enabled auto-merge (squash) October 20, 2025 10:50
@ZhongpinWang ZhongpinWang merged commit de3d2b1 into main Oct 20, 2025
20 of 22 checks passed
@ZhongpinWang ZhongpinWang deleted the githAction-pnpmUpdate-394 branch October 20, 2025 10:51
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.

3 participants