diff --git a/apps/nogui/nushell/git-bug.nu b/apps/nogui/nushell/git-bug.nu index d8316ea..aa1fa66 100644 --- a/apps/nogui/nushell/git-bug.nu +++ b/apps/nogui/nushell/git-bug.nu @@ -1,9 +1,5 @@ export def "git bug init" [] { - ^git config --add remote.origin.fetch "refs/bugs/*:refs/bugs/*" - ^git config --add remote.origin.fetch "refs/identities/*:refs/identities/*" - ^git config --add remote.origin.push "refs/bugs/*:refs/bugs/*" - ^git config --add remote.origin.push "refs/identitites/*:refs/identities/*" - ^git fetch + git bug pull let id = ^git-bug user -f json | from json | where name == 'jolheiser' | get -i human_id.0 if ($id | is-not-empty) { ^git-bug user adopt $id @@ -12,6 +8,16 @@ export def "git bug init" [] { } } +export def "git bug pull" [] { + ^git fetch origin refs/bugs/*:refs/bugs/* + ^git fetch origin refs/identities/*:refs/identities/* +} + +export def "git bug push" [] { + ^git push origin refs/bugs/*:refs/bugs/* + ^git push origin refs/identities/*:refs/identities/* +} + def "bug-id" [] { ^git-bug bug --format json | from json | each {|bug| { value: $bug.human_id, description: $bug.title }} }