File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 4747 - name : Check code formatting with black
4848 run : |
4949 black --check src/ --config pyproject.toml
50-
51- - name : Validate PR Description
52- uses : actions/github-script@v6
53- with :
54- script : |
55- const pr = await github.rest.pulls.get({
56- owner: context.repo.owner,
57- repo: context.repo.repo,
58- pull_number: context.payload.pull_request.number,
59- });
60- const body = pr.data.body || "";
61- const requiredSections = [
62- "Description",
63- "Test Cases",
64- "Checklist",
65- ];
66- const missingSections = requiredSections.filter(section => !body.includes(section));
67- if (missingSections.length > 0) {
68- coreLib.setFailed(`PR Description is missing the following sections: ${missingSections.join(", ")}`);
69- }
You can’t perform that action at this time.
0 commit comments