Skip to content

Commit 6457ade

Browse files
committed
adds gh helpers
1 parent ddfdf50 commit 6457ade

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

nushell/modules/gh.nu

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export def "last run" [] {
2+
}
3+
4+
export def "last deploy" [...args: string] {
5+
last deploys $"-L 1 --json databaseId ($args)"
6+
}
7+
8+
export def "last deploys" [--branch: string = main, ...args: string] {
9+
gh run list --workflow="build-deploy.yaml" --branch $branch --event push ...$args
10+
}

0 commit comments

Comments
 (0)