Skip to content

Commit 20dcd3b

Browse files
committed
Explicitly add heading anchors/ids
1 parent 2d536bb commit 20dcd3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/outputters/github-job-summary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,5 +200,5 @@ function undent2(strings, ...values){
200200

201201
function githubAnchor(id){
202202
// Not sure where the spec on this is, so just trying best effort to match observed behavior
203-
return id ?? "user-content-"+id.toLowerCase()
203+
return id && "user-content-"+id.toLowerCase()
204204
}

0 commit comments

Comments
 (0)