feat: add drive link fix behavior #267
pull-request-ci.yml
on: pull_request
Matrix: ci / linter / π‘οΈ CodeQL Analysis
ci
/
...
/
π§Ή Lint Code Base
1m 54s
ci
/
...
/
prepare-actions-linting
10s
ci
/
...
/
π‘οΈ CodeQL Analysis
1m 6s
ci
/
...
/
π‘οΈ Dependency Review
12s
ci
/
...
/
Check dist
48s
ci
/
...
/
Test with valid issue
6s
ci
/
...
/
Test with invalid issue
6s
Annotations
1 error and 6 warnings
|
ci / Test action / Test with invalid issue
Process completed with exit code 1.
|
|
ci / linter / π‘οΈ CodeQL Analysis (actions)
1 issue was detected with this workflow: Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.
|
|
OpenSSF Scorecard Warning
npm/json-bigint has an OpenSSF Scorecard of 2.4, which is less than this repository's threshold of 3.
|
|
OpenSSF Scorecard Warning
npm/https-proxy-agent has an OpenSSF Scorecard of 2.9, which is less than this repository's threshold of 3.
|
|
OpenSSF Scorecard Warning
npm/agent-base has an OpenSSF Scorecard of 2.9, which is less than this repository's threshold of 3.
|
|
ci / Test nodejs / test-nodejs / π‘οΈ CodeQL Analysis
1 issue was detected with this workflow: Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.
|
|
ci / Test nodejs / test-nodejs / π§ͺ Test
PASS src/linter/adapter/drive-link-linter.adapter.test.ts
DriveLinkLinterAdapter
lint
β should return the meetup issue if the Drive Link is valid (8 ms)
β should throw a LintError if Drive Link is invalid (5 ms)
β should throw a LintError if Drive Link is not a Drive Link (2 ms)
β should accept Drive Link with trailing slash (1 ms)
β should remove trailing slash when shouldFix is true (2 ms)
β should auto-create Google Drive folder when missing drive link and Google Drive is configured (3 ms)
β should throw error when trying to auto-create without event_date (2 ms)
β should throw error when trying to auto-create without hoster (1 ms)
β should not auto-create when shouldFix is false (4 ms)
getDependencies
β should return an empty array (1 ms)
PASS src/services/input.service.test.ts
InputService
getIssueNumber
β should return the issue number (4 ms)
getIssueParsedBody
β should return the parsed issue body (2 ms)
getHosters
β should return the hosters (2 ms)
β should throw an error if the hosters input is not an array (14 ms)
β should throw an error if the hosters input is empty (1 ms)
β should throw an error if the hosters input is not an array of valid objects (2 ms)
β should throw an error if the hosters input objects are missing name property (2 ms)
β should throw an error if the hosters input objects are missing url property (1 ms)
getSpeakers
β should return the speakers (1 ms)
β should throw an error if the speakers input is not an array (2 ms)
β should throw an error if the speakers input is empty (4 ms)
β should throw an error if the speakers input is not an array of valid objects (1 ms)
β should throw an error if the speakers input objects are missing name property (1 ms)
β should throw an error if the speakers input objects are missing url property (1 ms)
getShouldFix
β should return the shouldFix value (1 ms)
getFailOnError
β should return the failOnError value (1 ms)
getGithubToken
β should return the github token (1 ms)
PASS src/index-runner.test.ts
run
β should lint given valid issue and succeed (20 ms)
β should lint given issue, fix it and succeed (7 ms)
β should handle lint errors (7 ms)
β should handle unexpected error and call setFailed (4 ms)
β should handle unknown error and call setFailed (3 ms)
PASS src/linter/adapter/agenda-linter.adapter.test.ts
AgendaLinterAdapter
lint
β should return the meetup issue if the Agenda is valid with single speaker without link (6 ms)
β should return the meetup issue if the Agenda is valid with description containing colon (2 ms)
β should return the meetup issue if the Agenda is valid with multiple speakers without links (2 ms)
β should return the meetup issue if the Agenda is valid with some speakers having links and others not (2 ms)
β should fix the Agenda if shouldFix is true (2 ms)
β should throw a LintError if agenda is empty (2 ms)
β should throw a LintError if agenda has no entries (1 ms)
β should throw a LintError if agenda entry is wrongly formatted (1 ms)
β should throw a LintError if agenda entry speaker is empty (2 ms)
β should throw a LintError if agenda entry speaker does not exist (1 ms)
getDependencies
β should return an empty array (1 ms)
PASS src/linter/linter.service.spec.ts
LinterService
lint
β should call lint on each linter respecting dependencies (8 ms)
β should update meetup issue at the end of linting when shouldFix is true (2 ms)
β should throw a LintError if any linter fails (3 ms)
PASS src/services/meetup-issue.service.test.ts
MeetupIssueService
getMeetupIssue
β should returns mapped meetup issue (3 ms)
updateMeetupIssue
β should update the issue title (2 ms)
β should update the issue labels (1 ms)
β should update the issue body (1 ms)
β should throw an error if the issue number
|