SIM7600G Unhandled: +CIPCLOSE: 0,0 (Error code -2) #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Issue Checker | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
check-issue: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for Required Information | |
uses: actions/github-script@v4 | |
with: | |
script: | | |
const { issue } = context.payload; | |
const requiredFields = ['Description', 'Steps to Reproduce', 'Expected Behavior', 'Actual Behavior', 'Environment', 'IDE']; | |
let missingFields = requiredFields.filter(field => !issue.body.includes(`### ${field}`)); | |
if (missingFields.length > 0) { | |
const commentBody = `The following fields are missing: ${missingFields.join(', ')}. Please update the issue with this information.`; | |
await github.issues.createComment({ | |
...context.repo, | |
issue_number: issue.number, | |
body: commentBody | |
}); | |
await github.issues.addLabels({ | |
...context.repo, | |
issue_number: issue.number, | |
labels: ['lacking information'] | |
}); | |
} |