Skip to content

Commit 2eddd49

Browse files
committed
fix: only grab tags from target branches
1 parent d5d772d commit 2eddd49

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

client/src/addon_manager/models/addon.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ export class Addon {
6060
await this.getEnabled();
6161

6262
if (this.#installed) {
63-
tags = (await moduleGit.tags(["--sort=-taggerdate"])).all;
63+
tags = (
64+
await moduleGit.tags([
65+
"--sort=-taggerdate",
66+
"--merged",
67+
`origin/${await this.getDefaultBranch()}`,
68+
])
69+
).all;
6470

6571
const currentTag = await moduleGit
6672
.raw(["describe", "--tags", "--exact-match"])

0 commit comments

Comments
 (0)