From fe0f80d5c9a95f6fcca2d37a43892c4b8c479f1d Mon Sep 17 00:00:00 2001 From: cerico Date: Wed, 12 Jun 2024 23:45:30 +0200 Subject: [PATCH] feat: add set_secret to repo functio --- files/zsh/git.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/zsh/git.zsh b/files/zsh/git.zsh index df77d80..32b75a5 100644 --- a/files/zsh/git.zsh +++ b/files/zsh/git.zsh @@ -149,8 +149,6 @@ 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 \ @@ -158,6 +156,9 @@ repo () { # create repo with settings -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 () {