Skip to content

Commit

Permalink
Merge branch '312345678' into lab3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaRduTP authored Mar 13, 2024
2 parents de16417 + d9371f6 commit cf1750e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
const pr = await github.rest.pulls.get({ owner, repo, pull_number: issue_number });
const body = pr.data.body;
console.log('[*] PR body:');
console.log(pr.data.body);
const checkboxes = body.match(/^ ?(-|\*) \[[x ]\]/gi);
if (!checkboxes || checkboxes.length !== 5) {
core.setFailed('The PR description must contain exactly 5 checkboxes.');
Expand Down

0 comments on commit cf1750e

Please sign in to comment.