Skip to content

Commit

Permalink
Automated release and pr scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rayraspberry committed Nov 28, 2022
1 parent 5abffdd commit ebb9c24
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions yfd-new-pr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# $1 = PR Title
# $2 = PR Description and Commit message

git branch -u=origin/main releases/v$1
git commit -a -m "$2"

git push

gh pr create -t "$1" -b "$2"

echo "PR: "$1" Created!"

9 changes: 9 additions & 0 deletions yfd-new-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

git checkout -b releases/v$1 main
git branch -u origin/main releases/v$1
git push

git tag -a v$1 HEAD -m "New Release v$1"

echo "Release v$1 branch prepared for deployment!"

0 comments on commit ebb9c24

Please sign in to comment.