Skip to content

Commit

Permalink
[DEBUG] fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
philippeauriach committed Aug 22, 2023
1 parent e716857 commit f46374f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/actions/pullRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,17 @@ exports.validatePR = async function validatePR({ pullRequest, issue }) {
} = await getAmplifyURIs();
const hiddenAmplifyText =
hiddenAmplifyUris && hiddenAmplifyUris.length > 0
? `\n<details>
<summary>More uris</summary>
? `\n<details><summary>More uris</summary>
- ${hiddenAmplifyUris.join("\n -")}
- ${hiddenAmplifyUris.join("\n - ")}
</details>`
</details>`
: "";
if (!amplifyUris || amplifyUris.length === 0) {
console.log("No AWS Amplify URI for this repository" + hiddenAmplifyText);
if (
(!amplifyUris || amplifyUris.length === 0) &&
(!hiddenAmplifyUris || hiddenAmplifyUris.length === 0)
) {
console.log("No AWS Amplify URI for this repository");
} else {
console.log("AWS Amplify URIs: ", amplifyUris, "hidden", hiddenAmplifyUris);
const pullNumber = pullRequest?.number || issue?.number;
Expand Down

0 comments on commit f46374f

Please sign in to comment.