mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-28 10:35:21 +02:00
feat: better UI for submitting labels
This commit is contained in:
@@ -443,12 +443,11 @@ export default async function handler(
|
||||
|
||||
for (const app of secureApps) {
|
||||
// check for labels
|
||||
if (app?.previewLabels != "") {
|
||||
const previewLabels = app?.previewLabels?.split(",");
|
||||
if (app?.previewLabels.size() > 0) {
|
||||
let hasLabel: boolean = false;
|
||||
const labels = githubBody?.pull_request?.labels;
|
||||
for (const label of labels) {
|
||||
if (previewLabels.contains(label.name)) {
|
||||
if (app?.previewLabels.contains(label.name)) {
|
||||
hasLabel = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user