A fast, local-first "redirection engine" for !bang users with a few extra features ^-^

feat: stop cluttering the commit history

dunkirk.sh 7cd3dc74 751199b7

verified
+12 -2
+12 -2
.github/workflows/update-bangs.yaml
··· 41 41 git config --local user.email "github-actions[bot]@users.noreply.github.com" 42 42 git config --local user.name "github-actions[bot]" 43 43 git add src/bangs/bangs.json src/bangs/hashbang.ts 44 - git commit -m "chore: update bangs.json" || exit 0 45 - git push 44 + 45 + # Check if the last commit was a bangs update 46 + LAST_COMMIT_MSG=$(git log -1 --pretty=%B) 47 + if [[ "$LAST_COMMIT_MSG" == "chore: update bangs.json" ]]; then 48 + # If it was, amend the commit 49 + git commit --amend -m "chore: update bangs.json" || exit 0 50 + else 51 + # Otherwise, create a new commit 52 + git commit -m "chore: update bangs.json" || exit 0 53 + fi 54 + 55 + git push --force-with-lease 46 56 47 57 - name: Tailscale 48 58 uses: tailscale/github-action@v3