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
| #!/usr/bin/env python | |
| """ | |
| Print a breakdown of the passed filepaths by CODEOWNER team. | |
| This script requires the `codeowners` CLI tool to be installed and available on the $PATH. | |
| https://github.com/hmarr/codeowners | |
| Intended usage is to pipe filepaths into this script from the root of a repo: | |
| cat filepaths.txt | codeowner-breakdown |
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
| #!/usr/bin/env bash | |
| # | |
| # Try and squash unstaged changes into existing branch commits. | |
| # | |
| # This command examines each unstaged file and attempts to create a fix-up | |
| # commit to squash it into its natural parent in the current branch. | |
| # | |
| # - If it's able to do this for all modified files, the fix-up files are | |
| # automatically squashed in. | |
| # |
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
| #!/usr/bin/env bash | |
| # | |
| # A Bash script to run a TDD loop for building a Python module to pass tests. | |
| set -euo pipefail | |
| # How many times to loop. | |
| ATTEMPTS=4 | |
| # The system prompt to use when creating the initial version. |
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
| #!/usr/bin/env bash | |
| # | |
| # Check the status of a folder of repos to see if there are any unpushed commits. | |
| # | |
| # This is intended to help migrate to a new laptop, where you want to check | |
| # that there are no unpushed local commits before switching to the new machine. | |
| # | |
| # Needs `rg` and `fd` installed. | |
| set -e |
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
| #!/usr/bin/env bash | |
| # | |
| # List a TSV of users who have access to an item. | |
| set -e | |
| export OP_FORMAT=json | |
| function main() { | |
| local item_id="$1" |
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
| #!/usr/bin/env bash | |
| # | |
| # Print a TSV of items that are accessible by a given user. | |
| set -e | |
| export OP_FORMAT=json | |
| function main() { |
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
| #!/usr/bin/env bash | |
| # | |
| # Run pre-commit on every commit in your PR branch. | |
| # | |
| # The rebase will stop is pre-commit fails on any commit, allowing you to fix | |
| # the issues. Once you've made changes, verify that pre-commit now passes on | |
| # that commit with: | |
| # | |
| # pre-commit run --from HEAD^ --to HEAD | |
| # |
OlderNewer