feat: better UI for submitting labels

This commit is contained in:
PiquelChips
2025-08-11 14:03:30 +02:00
parent 1904a3d1e9
commit 429c1e4cd8
7 changed files with 6526 additions and 25 deletions

View File

@@ -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;
}