You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 13, 2020. It is now read-only.
# TODO approve the PR this build creates on the HLD
195
202
196
203
# Start creating a service revision
197
204
git branch $branchName
@@ -202,7 +209,13 @@ git commit -m "Adding my new file"
202
209
git push --set-upstream origin $branchName
203
210
204
211
# Create a PR for the change
205
-
spk service create-revision -t "Automated Test PR" -d "Adding my new file" --org-name $AZDO_ORG --personal-access-token $ACCESS_TOKEN_SECRET --remote-url $remote_repo_url>>$TEST_WORKSPACE/log.txt
212
+
current_time=$(date +"%Y-%m-%d-%H-%M-%S")
213
+
pr_title="Automated Test PR $current_time"
214
+
echo"Creating pull request: '$pr_title'"
215
+
spk service create-revision -t $pr_title -d "Adding my new file" --org-name $AZDO_ORG --personal-access-token "$ACCESS_TOKEN_SECRET" --remote-url $remote_repo_url>>$TEST_WORKSPACE/log.txt
216
+
217
+
echo"Attempting to approve pull request: '$pr_title'"
218
+
# Get the id of the pr created and set the PR to be approved
0 commit comments