Skip to content

🎵 沙一汀EL - 普通女孩 #8

🎵 沙一汀EL - 普通女孩

🎵 沙一汀EL - 普通女孩 #8

on:
issues:
types: [opened, reopened]
jobs:
process_issue:
runs-on: ubuntu-latest
steps:
- name: Check issue content
uses: actions/github-script@v7
with:
script: |
const issueBody = context.payload.issue.body;
const remarksSection = /### 备注\n\n_No response_\n\n?/;
if (remarksSection.test(issueBody)) {
const updatedBody = issueBody.replace(remarksSection, '').trim();
await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: updatedBody
});
console.log(`Removed '_No response_' section from issue #${context.issue.number}.`);
} else {
console.log('No matching remarks section found or value is not "_No response_".');
}