Skip to content
Permalink
Browse files
Don't add a title when updating a check
  • Loading branch information
LouisBrunner committed Sep 7, 2020
1 parent 4a05f6d commit e2a613e40518718a3931ef93279850a75fe4aa66
Showing 2 changed files with 4 additions and 4 deletions.

Large diffs are not rendered by default.

@@ -11,11 +11,11 @@ type CreateOptions = {
completed: boolean;
};

const unpackInputs = (inputs: Inputs.Args): Record<string, unknown> => {
const unpackInputs = (inputs: Inputs.Args, options: {update: boolean} = {update: false}): Record<string, unknown> => {
let output;
if (inputs.output) {
output = {
title: inputs.name,
title: options.update ? undefined : inputs.name,
summary: inputs.output.summary,
text: inputs.output.text_description,
actions: inputs.actions,
@@ -91,6 +91,6 @@ export const updateRun = async (
...ownership,
check_run_id: id,
completed_at: formatDate(),
...unpackInputs(inputs),
...unpackInputs(inputs, {update: true}),
});
};

0 comments on commit e2a613e

Please sign in to comment.