diff --git a/.github/workflows/hande-issues.yml b/.github/workflows/hande-issues.yml new file mode 100644 index 0000000000..2086f6245f --- /dev/null +++ b/.github/workflows/hande-issues.yml @@ -0,0 +1,35 @@ +name: Remove 'No response', 'NA', and 'N/A' Sections + +on: + issues: + types: [opened] + +jobs: + clean_issue_body: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Remove 'No response', 'NA', and 'N/A' sections + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const issue = context.payload.issue; + let body = issue.body; + + // Regex to match '###