File tree Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -10,23 +10,21 @@ if [ -z "$(git status --porcelain)" ]; then
10
10
exit 0
11
11
fi
12
12
13
- echo " Would create PR now"
13
+ git config user.name " docs-generator[bot]"
14
+ git config user.email " docs-generator[bot]@amazon.com"
14
15
15
- # git config user.name "docs-generator[bot]"
16
- # git config user.email "docs-generator[bot]@amazon.com"
16
+ # Create branch and push
17
+ git checkout -b " $BRANCH_NAME "
18
+ git add .
19
+ git commit -m " Update docs based on PR #$PR_NUMBER
17
20
18
- # # Create branch and push
19
- # git checkout -b "$BRANCH_NAME"
20
- # git add .
21
- # git commit -m "Update docs based on PR #$PR_NUMBER
21
+ Auto-generated by Q"
22
22
23
- # Auto-generated by Q "
23
+ git push origin " $BRANCH_NAME "
24
24
25
- # git push origin "$BRANCH_NAME"
26
-
27
- # # Create PR
28
- # gh pr create \
29
- # --title "Update docs based on PR #$PR_NUMBER" \
30
- # --body "Auto-generated documentation updates based on changes in PR #$PR_NUMBER" \
31
- # --base main \
32
- # --head "$BRANCH_NAME"
25
+ # Create PR
26
+ gh pr create \
27
+ --title " Update docs based on PR #$PR_NUMBER " \
28
+ --body " Auto-generated documentation updates based on changes in PR #$PR_NUMBER " \
29
+ --base main \
30
+ --head " $BRANCH_NAME "
Original file line number Diff line number Diff line change @@ -11,7 +11,5 @@ documentation. Then read 'pr-contents.txt' to see the contents of the current PR
11
11
After reading both the directory and the PR file, update the files in the 'docs' directory
12
12
with new documentation reflecting the proposed changes in the PR. Make new files as appropriate."
13
13
14
- cat pr-contents.txt
15
- echo " Would prompt q chat here"
16
- # timeout 10m echo -e $PROMPT | qchat chat --non-interactive --trust-all-tools
14
+ timeout 10m echo -e $PROMPT | qchat chat --non-interactive --trust-all-tools
17
15
exit $?
You can’t perform that action at this time.
0 commit comments