This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Publish to GitHub Page | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import assert from 'node:assert'; | |
| import { | |
| createRegExp, | |
| exactly, | |
| oneOrMore, | |
| char, | |
| wordChar, | |
| whitespace, | |
| maybe, | |
| } from 'magic-regexp'; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # --- Publish a git commit as a gist patch --- | |
| gist_commit() { | |
| local sha="$1" | |
| local desc="${2:-"Patch for commit $sha"}" | |
| if [ -z "$sha" ]; then | |
| echo "Usage: gist_commit <commit-sha> [description]" | |
| return 1 | |
| fi | 
OlderNewer