Skip to content

Instantly share code, notes, and snippets.

@alxmrtn
Last active October 16, 2024 15:29
Show Gist options
  • Save alxmrtn/67f1ad07e2ecc1c3c21c29990248ebac to your computer and use it in GitHub Desktop.
Save alxmrtn/67f1ad07e2ecc1c3c21c29990248ebac to your computer and use it in GitHub Desktop.
Print out the expected .talismanrc fileignoreconfig for a repo
#!/bin/bash
talisman -i -g pre-commit -s > /dev/null
files=$(cat ./talisman_report/talisman_reports/data/report.json |\
jq -r '.results[] | select(.failure_list | length > 0) | .filename')
talisman -c="$files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment