Skip to content

chore: [DevOps] Replace PAT with Cloud SDK GitHub app - #339

Merged
CharlesDuboisSAP merged 5 commits into
mainfrom
github-app
Jun 8, 2026
Merged

chore: [DevOps] Replace PAT with Cloud SDK GitHub app#339
CharlesDuboisSAP merged 5 commits into
mainfrom
github-app

Conversation

@CharlesDuboisSAP

@CharlesDuboisSAP CharlesDuboisSAP commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@CharlesDuboisSAP
CharlesDuboisSAP enabled auto-merge (squash) June 8, 2026 08:21
Comment on lines -47 to -54
# check if PR is already approved
REVIEW_DECISION=$(jq -r --arg pr "$PR_NUMBER" '.[] | select(.number == ($pr | tonumber)) | .reviewDecision' <<< "$PRS")
if [[ "$REVIEW_DECISION" == "APPROVED" ]]; then
echo "[DEBUG] PR #$PR_NUMBER is already approved, skipping"
else
echo "[DEBUG] PR #$PR_NUMBER is not approved yet, approving"
gh pr review "$PR_NUMBER" --approve
fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(Question)

Do we not need these checks? Why?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The checks were a bit buggy, I copied the Cloud SDK version of the workflow which is simpler and works better.

@CharlesDuboisSAP
CharlesDuboisSAP merged commit 2232958 into main Jun 8, 2026
5 checks passed
@CharlesDuboisSAP
CharlesDuboisSAP deleted the github-app branch June 8, 2026 09:17
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