We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b96f29b commit b8ac74cCopy full SHA for b8ac74c
__tests__/index.test.ts
@@ -24,6 +24,25 @@ beforeAll(() => {
24
execaSync("git", fetchArgs, execaOptions);
25
cwd = process.cwd();
26
process.chdir(TMP_DIR);
27
+
28
+ let currentDate = new Date("2023-09-21T23:31:48.180Z");
29
30
+ // remove tags prior to 2.0.1
31
+ let tagsToRemove = execaSync("git", [
32
+ "tag",
33
+ "-l",
34
+ "--sort",
35
+ "-creatordate",
36
+ "--format",
37
+ "%(refname:strip=2) %(taggerdate)",
38
+ ])
39
+ .stdout.split("\n")
40
+ .filter((line) => {
41
+ let [, tagTag] = line.split(" ");
42
+ let date = new Date(tagTag);
43
+ return date < currentDate;
44
+ });
45
+ console.log(tagsToRemove);
46
});
47
48
afterAll(() => {
0 commit comments