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
if git diff-index --cached --quiet HEAD -- . ':(exclude)src/audit-logs/lib/config.json'
then
echo "No real changes (only the SHA in config.json moved). Exiting…"
exit 0
fi
echo "Changes detected, proceeding"
echo "Creating commit..."
git commit -m "Add updated audit log event data"
echo "Created commit"
echo "Pushing commit..."
git push origin $branchname
echo "Pushed commit"
echo "Creating pull request..."
gh pr create \
--title "Update audit log event data" \
--body '👋 Docs First Responder. This PR updates the audit log event data with the latest changes, synced from github/audit-log-allowlists.
Make sure the PR builds successfully and there are no gross errors (for example, a file is deleted). You do not need to validate the contents (that is the responsibility of product teams).
If CI does not pass or other problems arise, contact #docs-engineering on slack.' \