-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(effect): using Data.TaggedClass across the board (#36)
* chore(efefct): using Data.TaggedClass across the board * fix: test
- Loading branch information
Showing
25 changed files
with
59 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { BaseError } from './base.error'; | ||
import { Data } from 'effect'; | ||
|
||
export class CommitMessagesExtractionError extends BaseError { | ||
readonly _tag = 'CommitMessagesExtraction'; | ||
} | ||
export class CommitMessagesExtractionError extends Data.TaggedError( | ||
'CommitMessagesExtraction', | ||
) {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { BaseError } from './base.error'; | ||
import { Data } from 'effect'; | ||
|
||
export class GithubActionsExecError extends BaseError { | ||
readonly _tag = 'GithubActionsExec'; | ||
} | ||
export class GithubActionsExecError extends Data.TaggedError( | ||
'GithubActionsExec', | ||
)<{ message: string }> {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { BaseError } from './base.error'; | ||
import { Data } from 'effect'; | ||
|
||
export class InvalidKeywordsError extends BaseError { | ||
readonly _tag = 'InvalidKeywords'; | ||
} | ||
export class InvalidKeywordsError extends Data.TaggedError('InvalidKeywords') {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { BaseError } from './base.error'; | ||
import { Data } from 'effect'; | ||
|
||
export class NoGithubEventError extends BaseError { | ||
readonly _tag = 'NoGithubEvent'; | ||
} | ||
export class NoGithubEventError extends Data.TaggedError('NoGithubEvent')<{ | ||
message: string; | ||
}> {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { BaseError } from './base.error'; | ||
import { Data } from 'effect'; | ||
|
||
export class NoVersionBumpRequestedError extends BaseError { | ||
readonly _tag = 'NoVersionBumpRequested'; | ||
} | ||
export class NoVersionBumpRequestedError extends Data.TaggedError( | ||
'NoVersionBumpRequested', | ||
) {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { BaseError } from './base.error'; | ||
import { Data } from 'effect'; | ||
|
||
export class NotRunningOnDefaultBranchError extends BaseError { | ||
readonly _tag = 'NotRunningOnDefaultBranch'; | ||
} | ||
export class NotRunningOnDefaultBranchError extends Data.TaggedError( | ||
'NotRunningOnDefaultBranch', | ||
) {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { BaseError } from './base.error'; | ||
import { Data } from 'effect'; | ||
|
||
export class UnknownCurrentBranchError extends BaseError { | ||
readonly _tag = 'UnknownCurrentBranch'; | ||
} | ||
export class UnknownCurrentBranchError extends Data.TaggedError( | ||
'UnknownCurrentBranch', | ||
) {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { BaseError } from './base.error'; | ||
import { Data } from 'effect'; | ||
|
||
export class UnknownDefaultBranchError extends BaseError { | ||
readonly _tag = 'UnknownDefaultBranch'; | ||
} | ||
export class UnknownDefaultBranchError extends Data.TaggedError( | ||
'UnknownDefaultBranch', | ||
) {} |
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
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
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
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