Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
57e5109
chore(deps): Bump rack
dependabot[bot] Nov 3, 2025
fb7bf58
chore(deps): Bump the npm-minor-and-patch group across 5 directories …
dependabot[bot] Nov 3, 2025
8b78a89
chore(deps): Bump the npm-minor-and-patch group across 5 directories …
smockle Nov 4, 2025
49afeaa
chore(deps): Bump rack from 3.2.3 to 3.2.4 in /sites/site-with-errors…
smockle Nov 4, 2025
0724e48
chore(deps-dev): Bump @octokit/types from 15.0.2 to 16.0.0
dependabot[bot] Nov 4, 2025
fd7cdea
chore(deps-dev): Bump @octokit/types from 15.0.2 to 16.0.0 (#67)
smockle Nov 4, 2025
dc808a0
fix(File): Don’t exceed the max allowed length for issue titles (256 …
smockle Nov 4, 2025
ddcbf9e
fix(File): Don’t exceed the max allowed length for issue titles (256 …
smockle Nov 4, 2025
da1251a
chore(deps-dev): Bump vitest
dependabot[bot] Nov 10, 2025
99f93f3
chore(deps-dev): Bump vitest from 4.0.6 to 4.0.8 in the npm-minor-and…
smockle Nov 14, 2025
0b4454a
chore(deps): Bump ruby/setup-ruby
dependabot[bot] Nov 17, 2025
4dbfffa
chore(deps-dev): Bump the npm-minor-and-patch group across 5 director…
dependabot[bot] Nov 17, 2025
f6ab89c
chore(deps): Bump ruby/setup-ruby from 1.267.0 to 1.268.0 in the gith…
smockle Nov 17, 2025
548ed8f
chore(deps-dev): Bump the npm-minor-and-patch group across 5 director…
smockle Nov 17, 2025
7e6b214
chore(deps-dev): Bump vitest
dependabot[bot] Nov 24, 2025
83d794f
chore(deps): Bump the github-actions group across 4 directories with …
dependabot[bot] Nov 24, 2025
45c105f
chore(deps): Bump the github-actions group across 4 directories with …
smockle Dec 1, 2025
d790d79
chore(deps-dev): Bump vitest from 4.0.10 to 4.0.13 in the npm-minor-a…
smockle Dec 1, 2025
aac24e2
fix: Make paths compatible with both GitHub-hosted and self-hosted ru…
smockle Dec 2, 2025
fad7659
fix: Don’t rely on 'rsync', since it’s not guaranteed to be installed
smockle Dec 2, 2025
e3611c2
fix: Improve guard that prevents errors when copying a file over itself
smockle Dec 2, 2025
a473a51
fix: Make action paths compatible with both GitHub-hosted and self-ho…
smockle Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/actions/auth/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/actions/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"playwright": "^1.56.1"
},
"devDependencies": {
"@types/node": "^24.9.2",
"@types/node": "^24.10.1",
"typescript": "^5.9.3"
}
}
86 changes: 43 additions & 43 deletions .github/actions/file/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/actions/file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"type": "module",
"dependencies": {
"@actions/core": "^1.11.1",
"@octokit/core": "^7.0.5",
"@octokit/plugin-throttling": "^11.0.2"
"@octokit/core": "^7.0.6",
"@octokit/plugin-throttling": "^11.0.3"
},
"devDependencies": {
"@types/node": "^24.9.2",
"@types/node": "^24.10.1",
"typescript": "^5.9.3"
}
}
18 changes: 17 additions & 1 deletion .github/actions/file/src/openIssue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,28 @@ import type { Finding } from './types.d.js';
import * as url from 'node:url'
const URL = url.URL;

/** Max length for GitHub issue titles */
const GITHUB_ISSUE_TITLE_MAX_LENGTH = 256;

/**
* Truncates text to a maximum length, adding an ellipsis if truncated.
* @param text Original text
* @param maxLength Maximum length of the returned text (including ellipsis)
* @returns Either the original text or a truncated version with an ellipsis
*/
function truncateWithEllipsis(text: string, maxLength: number): string {
return text.length > maxLength ? text.slice(0, maxLength - 1) + '…' : text;
}

export async function openIssue(octokit: Octokit, repoWithOwner: string, finding: Finding) {
const owner = repoWithOwner.split('/')[0];
const repo = repoWithOwner.split('/')[1];

const labels = [`${finding.scannerType} rule: ${finding.ruleId}`, `${finding.scannerType}-scanning-issue`];
const title = `Accessibility issue: ${finding.problemShort[0].toUpperCase() + finding.problemShort.slice(1)} on ${new URL(finding.url).pathname}`;
const title = truncateWithEllipsis(
`Accessibility issue: ${finding.problemShort[0].toUpperCase() + finding.problemShort.slice(1)} on ${new URL(finding.url).pathname}`,
GITHUB_ISSUE_TITLE_MAX_LENGTH
);
const solutionLong = finding.solutionLong
?.split("\n")
.map((line) =>
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/find/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/actions/find/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"playwright": "^1.56.1"
},
"devDependencies": {
"@types/node": "^24.9.2",
"@types/node": "^24.10.1",
"typescript": "^5.9.3"
}
}
Loading