how to test for broken links on incoming changes to the codebase (and not only validite URL syntax).
replace <1234> with the desired MR number, and <main> with the MR base branch name, and run
| #!/usr/bin/bash | |
| systemctl --user restart wireplumber pipewire-pulse pipewire |
| #!/usr/bin/bash | |
| sudo apt autoremove --purge | |
| sudo apt clean | |
| sudo apt autoclean | |
| sudo journalctl --vacuum-size=300M | |
| sudo logrotate /etc/logrotate.conf |
| #!/usr/bin/env bash | |
| usage() { | |
| echo " | |
| USAGE | |
| ./sh-kebab.sh [path] [--dry-run] [--skip-dirs] [--copy-files] | |
| #!/usr/bin/env node | |
| const p = require('child_process'); | |
| const resolveTitle = pr => { | |
| const prTitle = pr.title.replace(/OCMUI-\d+: /, ''); | |
| // <url|text> is link notation in slack messages | |
| // (but it only works if you disable rich formatting!) |
| #!/usr/bin/env bash | |
| usage() { | |
| printf "%s" " | |
| usage: $0 [-h|--help] | |
| sets up ocm, user and account roles for you, so you don't have to. you're welcome. | |
| here's what it does: |
| #!/usr/bin/env node | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const child_process = require('child_process'); | |
| const defaults = { | |
| outputPath: 'terms', | |
| sourceRepoPath: '.', |
| #!/usr/bin/env bash | |
| main() { | |
| log | |
| log_ln "hi :)" | |
| check_links $(cat -) | |
| log_ln "bye bye!" | |
| } |
| git fetch upstream | |
| git checkout master | |
| git rebase upstream/master | |
| git push -f origin master |