Compare commits

...

3 Commits

Author SHA1 Message Date
Tyler Perkins 22182e6ab5
lol bad message 2023-12-04 18:35:25 -05:00
Tyler Perkins d5f3c1d1d6
Rename drone file 2023-12-04 18:26:20 -05:00
Tyler Perkins fa98e99751
Add sample drone file 2023-12-04 18:25:48 -05:00
2 changed files with 146 additions and 0 deletions

13
.drone.yml Normal file
View File

@ -0,0 +1,13 @@
kind: pipeline
type: docker
name: build-and-release
steps:
- name: build
image: alpine
commands:
- echo "Build your code!"
- name: release
image: alpine
commands:
- echo "Release your code!"

133
setup.sh Executable file
View File

@ -0,0 +1,133 @@
#!/bin/bash
#
# Generic script to setup the repository for local development
echo "Installing pre-commit"
pip install pre-commit
pre-commit install
echo "Installing commit-msg"
HOOK_LOCATION=".git/hooks/commit-msg"
VERB_LOCATION=".git/hooks/verbs.txt"
cat << 'EOF' > "$HOOK_LOCATION"
#!/bin/sh
#
# Git hook to check for semantic commit messages in the form mentioned here
#
# https://seesparkbox.com/foundry/semantic_commit_messages
export TYPE=$(cut -d ':' -f1 < "$1" | xargs)
export VERB=$(cut -d ':' -f2 | cut -d ' ' -f2 < "$1")
(echo "$TYPE" | egrep '^(feat|chore|docs|fix|refactor|style|test)$' > /dev/null) || (echo "Missing type feat|chore|docs|fix|refactor|style|test"; exit 1)
(grep "$VERB" .git/hooks/verbs.txt > /dev/null) || (echo "Missing a verb"; exit 1)
EOF
cat << 'EOF' > "$VERB_LOCATION"
Remove
Delete
Update
Be
Have
Do
Say
Go
Can
Get
Would
Make
Know
Will
Think
Take
See
Come
Could
Want
Look
Use
Find
Give
Tell
Work
May
Should
Call
Try
Ask
Need
Feel
Become
Leave
Put
Mean
Keep
Let
Begin
Seem
Help
Talk
Turn
Start
Might
Show
Hear
Play
Run
Move
Like
Live
Believe
Hold
Bring
Happen
Must
Write
Provide
Sit
Stand
Lose
Pay
Meet
Include
Continue
Set
Learn
Change
Lead
Understand
Watch
Follow
Stop
Create
Speak
Read
Allow
Add
Spend
Grow
Open
Walk
Win
Offer
Remember
Love
Consider
Appear
Buy
Wait
Serve
Die
Send
Expect
Build
Stay
Fall
Cut
Reach
Kill
Remain
Merge
Improve
EOF