-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathget-changed-files.js
More file actions
33 lines (31 loc) · 990 Bytes
/
get-changed-files.js
File metadata and controls
33 lines (31 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import {
getPrNumberFromMergeQueueRef
} from "../main-kqx5tf9g.js";
import"../main-qxfdnkb5.js";
import {
getChangedFilepaths
} from "../main-mycz0558.js";
import {
HelperInputs
} from "../main-8h70j5cy.js";
import"../main-4c5nddsb.js";
import {
context
} from "../main-6avxv4a6.js";
import"../main-9m3k9gt0.js";
import"../main-q70tmm6g.js";
import"../main-wckvcay0.js";
// src/helpers/get-changed-files.ts
class GetChangedFiles extends HelperInputs {
}
var getChangedFiles = async ({ pattern, delimiter = ",", ignore_deleted }) => {
const pullNumber = context.eventName === "merge_group" ? getPrNumberFromMergeQueueRef() : context.issue.number;
const filePaths = await getChangedFilepaths(pullNumber, Boolean(ignore_deleted));
const filteredFilePaths = pattern ? filePaths.filter((fileName) => fileName.match(pattern)) : filePaths;
return filteredFilePaths.join(delimiter);
};
export {
getChangedFiles,
GetChangedFiles
};
//# debugId=72308F916186F09B64756E2164756E21