Skip to content

Commit

Permalink
Fix multiple amplify
Browse files Browse the repository at this point in the history
  • Loading branch information
callms committed Aug 2, 2023
1 parent 46122e5 commit d92343b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/actions/amplify.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ exports.getAmplifyURIs = async function getAmplifyURI() {
const amplifyUri = amplifyUriRaw.replace(/%/g, pullRequest.number);
if (amplifyUri.match(/^{/)) {
const result = [];
const amplifyUriMap = JSON.parse(amplifyUri);
for (const label of labels) {
if (amplifyUri[label]) {
result.push(amplifyUri[label]);
if (amplifyUriMap[label]) {
result.push(amplifyUriMap[label]);
}
}
return result;
Expand Down

0 comments on commit d92343b

Please sign in to comment.