Skip to content

Commit

Permalink
wrong match way
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr committed Aug 17, 2023
1 parent ceb9ba6 commit fd68c1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ let changedFeatures: any[];
if (baseRef) {
const changedFiles = (await $`git diff --name-only ${baseRef} ${ref}`)
.toString()
.trim()
.split(/\r?\n/g);
console.log(changedFiles);

const changedIds = changedFiles
.map((x) => /src\/(.*?)\//.match(x)?.[1])
.map((x) => x.match(/src\/(.*?)\//)?.[1])
.filter((x) => x);

changedFeatures = (
Expand Down

0 comments on commit fd68c1c

Please sign in to comment.