You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
Since 8e34c5e, `node lintcommit.js test` fails various tests and CI
fails for those cases too:
/home/runner/work/aws-toolkit-vscode/aws-toolkit-vscode/.github/workflows/lintcommit.js:80
} else if (!scope && typeScope.includes('(')) {
Solution:
Revert the changes from 8e34c5e. It's good to avoid code
duplication, but in this case `parsePRTitle()` is not the right
abstraction:
- it doesn't signal failures in a way that is handled by callers
- its return type is awkward (`undefined | string | object`)
- notify.js doesn't actually need `parsePRTitle`, it only needs to check
`startsWith()`.
'This pull request modifies files in src/ but no tests were added/updated. Confirm whether tests should be added or ensure the PR description explains why tests are not required.'
0 commit comments