-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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()`.
- Loading branch information
Showing
4 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters