File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,21 @@ jobs:
147
147
https://api.github.com/repos/$REPOSITORY/issues/$NEW_PR_ID/labels \
148
148
-d '{"labels":["Run CICD", "cherry-pick"]}'
149
149
150
+ # Check if copy-pr-bot.yaml exists and add "/ok to test" comment if it does
151
+ if [ -f ".github/copy-pr-bot.yaml" ]; then
152
+ # Get the latest commit SHA of the current branch
153
+ LATEST_SHA=$(git rev-parse HEAD)
154
+
155
+ # Add comment via GitHub API
156
+ curl -L \
157
+ -X POST \
158
+ -H "Accept: application/vnd.github+json" \
159
+ -H "Authorization: Bearer $GH_TOKEN" \
160
+ -H "X-GitHub-Api-Version: 2022-11-28" \
161
+ https://api.github.com/repos/$REPOSITORY/issues/$NEW_PR_ID/comments \
162
+ -d "{\"body\":\"/ok to test $LATEST_SHA\"}"
163
+ fi
164
+
150
165
else
151
166
URL="https://github.com/$REPOSITORY/pull/$PR_ID"
152
167
You can’t perform that action at this time.
0 commit comments