Skip to content

Commit 731ae1e

Browse files
committed
lint
1 parent a8845b6 commit 731ae1e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lint.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
BRANCH="$1"
4+
5+
if [ -z "$BRANCH" ]; then
6+
echo "Usage: $0 <branch-name>"
7+
exit 1
8+
fi
9+
10+
git checkout "$BRANCH" && \
11+
git pull origin "$BRANCH" && \
12+
git merge master && \
13+
npx prettier --write *.md && \
14+
git add . && \
15+
git commit -m "lint" && \
16+
git push origin "$BRANCH"

0 commit comments

Comments
 (0)