Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/asdf.sh Secret

Created February 19, 2023 20:18
Show Gist options
  • Select an option

  • Save KyMidd/095f055525e89526d5d4824f83937dc6 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/095f055525e89526d5d4824f83937dc6 to your computer and use it in GitHub Desktop.
while IFS= read -r commit; do
# Check if ticket in static permit-list for non-Jira commit_sha
if $(git log --max-count=1 --format=%B $commit | grep -iqE "$commit_static_permit_list"); then
echo "************"
echo "Commit message \"$(git log --max-count=1 --format=%B $commit)\" matches static permit-list and is valid, continuing"
continue
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment