Skip to content

Commit a0eff02

Browse files
author
kiran-garre
committed
Clean commit for docs generation
1 parent a58cdd0 commit a0eff02

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs-generation/read-pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
echo "====== PR Information ======\n" > $PR_FILE
66
gh pr view $PR_NUMBER --json title,body --jq '"Title: " + .title + "\nDescription: " + .body' >> $PR_FILE
77

8-
# Include PR diffs
8+
# Add PR diffs
99
echo -e "\n====== PR Diffs ======\n" >> $PR_FILE
1010
gh pr diff $PR_NUMBER >> $PR_FILE
1111

docs-generation/setup_amazon_q.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
3+
# This was taken and modified from the terminal-bench-test folder.
4+
25
set -e
36
# if git hash empty then set to latest auto
47
sudo apt-get update

docs-generation/update-docs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ if [ ! -f "$PR_FILE" ]; then
77
fi
88

99
# Create branch before making any changes
10+
# Reset to remote branch if it exists
1011
git fetch origin
1112
git checkout -B "$BRANCH_NAME"
1213
if git ls-remote --exit-code --heads origin "$BRANCH_NAME" >/dev/null 2>&1; then
1314
git reset --hard "origin/$BRANCH_NAME"
1415
fi
1516

1617
PROMPT="Before making any changes, read the 'docs' directory for the project's current
17-
documentation. Then read 'pr-contents.txt' to see the contents of the current PR.\n\n
18+
documentation. Then read 'pr-contents.txt' to see the contents of the current PR.\n
1819
After reading both the directory and the PR file, update the files in the 'docs' directory
1920
with new, concise documentation reflecting ONLY the proposed changes in the PR. Make new files as appropriate.
2021
Do not document changes or functionalities not related to the PR."

0 commit comments

Comments
 (0)