Skip to content

Commit c6eb45d

Browse files
committed
feat: allow setting an alternate url
1 parent 306d8e0 commit c6eb45d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

hooks/post-command

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ LABEL=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_LABEL:-$BUILDKITE_LABEL}
77
ROOT=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_ROOT:-$(pwd)}
88
SHA=$BUILDKITE_COMMIT
99
TOKEN=$BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_TOKEN
10+
URL=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_URL:-https://www.check-run-reporter.com/api/v1/submissions}
1011

11-
CMD='curl -v https://www.check-run-reporter.com/api/v1/submissions'
12+
CMD="curl -v $URL"
1213
CMD="$CMD --user token:'$TOKEN'"
1314
CMD="$CMD -F label'=$LABEL'"
1415
CMD="$CMD -F root='$ROOT'"

plugin.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ configuration:
1414
type: string
1515
token:
1616
type: string
17+
url:
18+
type: string
1719
additionalProperties: false
1820
required:
1921
- report

0 commit comments

Comments
 (0)