Add sanity check for funding / generator cmd for funding file
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9273ab56a8
commit
415dc61d07
2 changed files with 19 additions and 0 deletions
8
.config/sanity.d/has-funding.sh
Normal file
8
.config/sanity.d/has-funding.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
function sanity_has_funding() {
|
||||||
|
[[ -f .github/FUNDING.yml ]] || {
|
||||||
|
report warn "No FUNDING.yml config found"
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
report success "FUNDING.yml found"
|
||||||
|
}
|
11
bin/ghfund
Executable file
11
bin/ghfund
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
mkdir -p .github
|
||||||
|
cat -s >.github/FUNDING.yml <<EOF
|
||||||
|
---
|
||||||
|
|
||||||
|
github: [ Luzifer ]
|
||||||
|
|
||||||
|
...
|
||||||
|
EOF
|
Loading…
Reference in a new issue