Add bin/,cd
Add bin/,drive Add bin/,review Add bin/,review-renovate
This commit is contained in:
parent
d80976a36b
commit
ef2da35882
10
bin/executable_,cd
Normal file
10
bin/executable_,cd
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
nohup toolkit github fuzzy-clone update >/dev/null 2>&1 &
|
||||
|
||||
choice=$(toolkit github fuzzy-clone --print-dest)
|
||||
if [[ $? -ne 0 ]]; then
|
||||
return $?
|
||||
fi
|
||||
|
||||
cd "$(echo "$choice" | tail --lines 1)"
|
18
bin/executable_,drive
Normal file
18
bin/executable_,drive
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
|
||||
VAULT="$HOME/Documents/vaults/kjuulh/"
|
||||
DRIVE="/Users/kah/Library/CloudStorage/GoogleDrive-kah@lunar_app/My Drive/Vault"
|
||||
|
||||
set -e
|
||||
|
||||
files=$(fd . --full-path "$VAULT" -e md)
|
||||
file=$(echo "$files" | fzf)
|
||||
file_name=$(basename "$file")
|
||||
|
||||
echo "chosen file: $file_name"
|
||||
|
||||
pandoc -s "$file" -o "$DRIVE/${file_name%.md}.docx"
|
||||
|
||||
|
18
bin/executable_,review
Normal file
18
bin/executable_,review
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
--aura) toolkit github review --review-requested=lunarway/squad-aura --merge-strategy=squash
|
||||
;;
|
||||
--echo) toolkit github review --review-requested=lunarway/squad-echo --merge-strategy=squash
|
||||
;;
|
||||
--ranger) toolkit github review --review-requested=lunarway/squad-ranger --merge-strategy=squash
|
||||
;;
|
||||
--dart) toolkit github review --review-requested=lunarway/squad-dart --merge-strategy=squash
|
||||
;;
|
||||
*) toolkit github review --merge-strategy=squash
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
22
bin/executable_,review-renovate
Normal file
22
bin/executable_,review-renovate
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
gh search prs --state=open --review-requested=lunarway/squad-aura --label=dependencies --checks=pending --json repository,number | jq -c '.[]' | \
|
||||
while read obj ; do
|
||||
echo "$obj"
|
||||
number=$(jq '.number' <<< "$obj")
|
||||
repo=$(jq -r '.repository.nameWithOwner' <<< "$obj")
|
||||
gh pr diff "$number" --repo "$repo"
|
||||
read -p "Approve (y/N/q)? " -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
#gh --repo "$repo" pr review "$number" --approve
|
||||
#gh --repo "$repo" pr merge "$number" --squash --delete-branch
|
||||
echo "approve stuff"
|
||||
fi
|
||||
if [[ $REPLY =~ ^[Qq]$ ]]
|
||||
then
|
||||
echo "you've chosen to stop here!"
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user