Skip to content

chore: reduce commits in discovery document update PR #1699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions scripts/createcommits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,24 @@ do
if [ $name = "index" ]; then
git add '../docs/dyn/index.md'
commitmsg='chore: update docs/dyn/index.md'
else
elif [[ -f "$API_SUMMARY_PATH" ]]; then
git add '../googleapiclient/discovery_cache/documents/'$name'.*.json'
git add '../docs/dyn/'$name'_*.html'
if [[ -f "$API_SUMMARY_PATH" ]]; then
commitmsg=`cat $API_SUMMARY_PATH`
else
commitmsg='chore('$name'): update the api'
fi
commitmsg=`cat $API_SUMMARY_PATH`
else
# Do nothing. The files will be included in a bulk commit at the end
continue
fi
git commit -m "$commitmsg"
git rev-parse HEAD>temp/$name'.sha'
git reset
fi
done < temp/changed_files

# Add untracked files
# Add untracked files and files with minor updates
git add "../googleapiclient/discovery_cache/documents/*.json"
git add "../docs/dyn/*.html"
commitmsg='chore(docs): Add new discovery artifacts and reference documents'
commitmsg='chore(docs): Add new discovery artifacts and artifacts with minor updates'
git commit -m "$commitmsg"

exit 0