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/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 |
| #!/usr/bin/env bash | |
| function main() { | |
| validate "$@" | |
| set_name "$@" | |
| if [[ "$2" == '-p' ]]; then | |
| update_policy | |
| fi | |
| } |
| # | |
| # a one-liner to get raw content from github enterprise, relying on basic authentication. | |
| # eliminates the need to create an access token and incorporate it in the url. | |
| # | |
| # | |
| # fill in the blanks: | |
| # | |
| # USER your login user name for authentication (you'll be prompted for password on the terminal) | |
| # GHE_DOMAIN the github enterprise custom domain |