Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/google_form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ jobs:
with:
script: |
const payload = context.payload.client_payload;
const title = `Form response – ${payload.filename}`;
// Extract the word after "単語を入力してください:" if present
const wordMatch = payload.content.match(/^単語を入力してください:\s*(.+)$/m);
const word = wordMatch ? wordMatch[1].trim() : null;

const titlePrefix = word
? `vocabulary: add 「${word}」`
: 'Form response';
const title = `${titlePrefix} (${payload.filename})`;

const body = [
'Google Formに辞書追加のリクエストがありました。対応を検討してください。',
'',
Expand Down