fix: github action

This commit is contained in:
thomas
2024-05-07 17:46:16 +02:00
parent 7ea87b99a8
commit a9db6c0640
2 changed files with 2 additions and 1 deletions

View File

@@ -15,4 +15,5 @@ const sponsors = ['ddotx', 'LMFinney'];
module.exports = {
contributors,
sponsors,
};

View File

@@ -7,7 +7,7 @@ async function run() {
const title = github.context.payload.pull_request.title;
const labels = ['answer'];
const match = title.match(/Answer:\s*(\d+)/);
const match = title.match(/Answer(:?)\s*(\d+)/);
if (match) {
labels.push(String(parseInt(match[1], 10)));
}