Skip to content

Commit d3bdc7c

Browse files
committed
feat: extract vocabulary name for issue title
1 parent eaa4586 commit d3bdc7c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/google_form.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ jobs:
1919
with:
2020
script: |
2121
const payload = context.payload.client_payload;
22-
const title = `Form response – ${payload.filename}`;
22+
// Extract the word after "単語を入力してください:" if present
23+
const wordMatch = payload.content.match(/^単語を入力してください:\s*(.+)$/m);
24+
const word = wordMatch ? wordMatch[1].trim() : null;
25+
26+
const titlePrefix = word
27+
? `vocabulary: add 「${word}」`
28+
: 'Form response';
29+
const title = `${titlePrefix} (${payload.filename})`;
30+
2331
const body = [
2432
'Google Formに辞書追加のリクエストがありました。対応を検討してください。',
2533
'',

0 commit comments

Comments
 (0)