Skip to content

Commit

Permalink
feat: add set_secret to repo functio
Browse files Browse the repository at this point in the history
  • Loading branch information
cerico committed Jun 12, 2024
1 parent 61f5702 commit fe0f80d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions files/zsh/git.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,16 @@ repo () { # create repo with settings
fi

gh repo create "$repo_name" --"$visibility"
git remote add origin git@github.com:$username/$repo_name.git
git push origin main

gh api -X PATCH "repos/$username/$repo_name" \
-F allow_merge_commit=false \
-F allow_squash_merge=false \
-F delete_branch_on_merge=true

gh api repos/$username/$repo_name -X GET | jq
set_secret
git remote add origin git@github.com:$username/$repo_name.git
git push origin main
}

_getpr () {
Expand Down

0 comments on commit fe0f80d

Please sign in to comment.