Initial commit
This commit is contained in:
8
bin/pr/check
Executable file
8
bin/pr/check
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
exec 3>&1 # Make stdout available as fd 3 for the result
|
||||
exec 1>&2 # Redirect all output to stderr for logging
|
||||
|
||||
# <&0 Take stdin and pass it to our binary
|
||||
# >&3 Take stdout and pass it to fd3, a Concourse resource requirement
|
||||
gitea-resource --action check pr "${@}" <&0 | jq . >&3
|
3
bin/pr/in
Executable file
3
bin/pr/in
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
gitea-resource --action get pr --destination "${@}" <&0 | jq . >&3
|
3
bin/pr/out
Executable file
3
bin/pr/out
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user