fix: actions

This commit is contained in:
thomas
2024-04-18 09:38:21 +02:00
committed by Vimulatus
parent fc8e381a40
commit 34e54827c4
2 changed files with 2 additions and 6 deletions

View File

@@ -5,12 +5,7 @@ const { contributors } = require('./contributors');
async function run() {
try {
const title = github.context.payload.pull_request.title;
const labels = [];
if(!title.startsWith('Answer:')) {
return;
}
labels.push('answer');
const labels = ['answer'];
const match = title.match(/Answer:\s*(\d+)/);
if (match) {