Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 0 additions & 37 deletions .configurations/configuration.dsc.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
*.xwb binary
*.jpg binary
*.png binary
# Radiance HDR images are RGBE binary; without this Git diffs them as text
# (tens of thousands of phantom "lines" per file in the public mirror).
*.hdr binary
10 changes: 8 additions & 2 deletions .github/scripts/eval-pr-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ const CRITERIA = [
},
];

function stripHtmlComments(markdown) {
return String(markdown).replace(/<!--[\s\S]*?-->/g, '');
}

function evaluate(prBody) {
if (!prBody || prBody.trim().length === 0) {
const body = stripHtmlComments(prBody);

if (!body || body.trim().length === 0) {
return {
score: 0,
maxScore: 100,
Expand All @@ -66,7 +72,7 @@ function evaluate(prBody) {
}

const results = CRITERIA.map((criterion) => {
const passed = criterion.test(prBody);
const passed = criterion.test(body);
return {
id: criterion.id,
name: criterion.name,
Expand Down
Loading