Skip to content

Commit d620d39

Browse files
authored
Surface ability to hide the banner #86
1 parent 965083b commit d620d39

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

action.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ inputs:
4444
description: Whether or not to allow missing junit files in the upload invocation.
4545
required: false
4646
default: true
47+
hide-banner:
48+
description: Whether to hide the top level flaky tests banner
49+
required: false
4750

4851
runs:
4952
using: composite
@@ -66,3 +69,4 @@ runs:
6669
ALLOW_MISSING_JUNIT_FILES: ${{ inputs.allow-missing-junit-files }}
6770
BAZEL_BEP_PATH: ${{ inputs.bazel-bep-path }}
6871
PR_TITLE: ${{ github.event.pull_request.title }}
72+
HIDE_BANNER: ${{ inputs.hide-banner }}

script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ JUNIT_PATHS="${JUNIT_PATHS-}"
7373
XCRESULT_PATH="${XCRESULT_PATH-}"
7474
BAZEL_BEP_PATH="${BAZEL_BEP_PATH-}"
7575
ALLOW_MISSING_JUNIT_FILES_ARG=$(parse_bool "${ALLOW_MISSING_JUNIT_FILES}" "--allow-missing-junit-files")
76+
HIDE_BANNER=$(parse_bool "${HIDE_BANNER}" "--hide-banner")
7677
QUARANTINE_ARG=$(parse_bool "${QUARANTINE}" "--use-quarantining")
7778

7879
# CLI.
@@ -100,6 +101,7 @@ if [[ $# -eq 0 ]]; then
100101
--team "${TEAM}" \
101102
--tags "${TAGS}" \
102103
${ALLOW_MISSING_JUNIT_FILES_ARG} \
104+
${HIDE_BANNER} \
103105
${QUARANTINE_ARG}
104106
else
105107
./trunk-analytics-cli test \
@@ -113,6 +115,7 @@ else
113115
--team "${TEAM}" \
114116
--tags "${TAGS}" \
115117
${ALLOW_MISSING_JUNIT_FILES_ARG} \
118+
${HIDE_BANNER} \
116119
${QUARANTINE_ARG} "$@"
117120
fi
118121
# trunk-ignore-end(shellcheck/SC2086)

tests/arguments.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ test("Forwards inputs", async () => {
3838
XCRESULT_PATH: "",
3939
ALLOW_MISSING_JUNIT_FILES: "",
4040
BAZEL_BEP_PATH: "",
41+
HIDE_BANNER: "",
4142
};
4243

4344
const scriptPath = path.resolve(repoRoot, "script.sh");

0 commit comments

Comments
 (0)