Skip to content

Commit 167fcb5

Browse files
[autofix.ci] apply automated fixes
1 parent 81bc5b3 commit 167fcb5

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

apps/dokploy/components/dashboard/shared/tag-patterns-field.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ import {
88
CommandInput,
99
CommandItem,
1010
} from "@/components/ui/command";
11-
import { FormControl, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
11+
import {
12+
FormControl,
13+
FormItem,
14+
FormLabel,
15+
FormMessage,
16+
} from "@/components/ui/form";
1217
import {
1318
Popover,
1419
PopoverContent,
@@ -70,8 +75,8 @@ export const TagPatternsField = ({
7075
</TooltipTrigger>
7176
<TooltipContent className="max-w-xs">
7277
<p>
73-
Select existing tags or type glob patterns (e.g., v*,
74-
release-*, v[0-9].*). Leave empty to deploy on any tag.
78+
Select existing tags or type glob patterns (e.g., v*, release-*,
79+
v[0-9].*). Leave empty to deploy on any tag.
7580
</p>
7681
</TooltipContent>
7782
</Tooltip>

apps/dokploy/pages/api/deploy/github.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ export default async function handler(
185185
// Pattern matching with backwards compatibility
186186
if (composeApp.tagPatterns && composeApp.tagPatterns.length > 0) {
187187
try {
188-
const matchesPattern = micromatch.isMatch(tagName, composeApp.tagPatterns);
188+
const matchesPattern = micromatch.isMatch(
189+
tagName,
190+
composeApp.tagPatterns,
191+
);
189192
if (!matchesPattern) {
190193
console.log(
191194
`[GitHub Webhook] Tag "${tagName}" does not match patterns [${composeApp.tagPatterns.join(", ")}] for compose "${composeApp.name}", skipping deployment`,

packages/server/src/utils/providers/github.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ export const getGithubBranches = async (
224224
return branches;
225225
};
226226

227-
export const getGithubTags = async (
228-
input: typeof apiFindGithubTags._type,
229-
) => {
227+
export const getGithubTags = async (input: typeof apiFindGithubTags._type) => {
230228
if (!input.githubId) {
231229
return [];
232230
}

0 commit comments

Comments
 (0)