Initial commit

This commit is contained in:
Alexis Vanier
2020-01-09 17:06:03 -05:00
committed by Alexis Vanier
commit ebbf79ce68
23 changed files with 1443 additions and 0 deletions

8
bin/pr/check Executable file
View 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
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
gitea-resource --action get pr --destination "${@}" <&0 | jq . >&3

3
bin/pr/out Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
exit 0