Skip to content

Commit 7ef9a30

Browse files
committed
Remove slack service
1 parent aa96e8a commit 7ef9a30

File tree

9 files changed

+13
-161
lines changed

9 files changed

+13
-161
lines changed

Sources/SwiftTools/Common/Slack/Injection/SlackAssembly.swift

-18
This file was deleted.

Sources/SwiftTools/Common/Slack/Platform/SlackService.swift

-61
This file was deleted.

Sources/SwiftTools/Common/Slack/Presentation/SlackErrorConverter.swift

-19
This file was deleted.

Sources/SwiftTools/Configuration/Application/ConfigurationController.swift

-13
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,7 @@
77

88
import Foundation
99

10-
public struct SlackConfiguration {
11-
public let url: URL
12-
public let mergeIconPath: String
13-
public let channel: String
14-
15-
public init(url: URL, mergeIconPath: String, channel: String) {
16-
self.url = url
17-
self.mergeIconPath = mergeIconPath
18-
self.channel = channel
19-
}
20-
}
21-
2210
public protocol ConfigurationController {
23-
func getSlackConfiguration() -> SlackConfiguration
2411
func getUpdatePath() -> String
2512
func getXcodeConfigurationPath() -> String
2613
func getSwiftFormatConfigurationFilePath() -> String

Sources/SwiftTools/Git/Merge/Domain/MergeFinishInteractor.swift

+6-5
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ public protocol MergeFinishInteractor {
1414
final class MergeFinishInteractorImpl: MergeFinishInteractor {
1515
private let statusInteractor: MergeStatusInteractor
1616
private let processInteractor: MergeProcessInteractor
17-
private let slackInteractor: MergeSlackInteractor
1817
private let printService: PrintService
1918
private let destinationBranchInteractor: MergeDestinationBranchInteractor
2019

21-
init(statusInteractor: MergeStatusInteractor, processInteractor: MergeProcessInteractor, slackInteractor: MergeSlackInteractor, printService: PrintService, destinationBranchInteractor: MergeDestinationBranchInteractor) {
20+
init(
21+
statusInteractor: MergeStatusInteractor,
22+
processInteractor: MergeProcessInteractor,
23+
printService: PrintService,
24+
destinationBranchInteractor: MergeDestinationBranchInteractor
25+
) {
2226
self.statusInteractor = statusInteractor
2327
self.processInteractor = processInteractor
24-
self.slackInteractor = slackInteractor
2528
self.printService = printService
2629
self.destinationBranchInteractor = destinationBranchInteractor
2730
}
@@ -38,9 +41,7 @@ final class MergeFinishInteractorImpl: MergeFinishInteractor {
3841
return
3942
}
4043
try processInteractor.testAndPush(destination: destination)
41-
try slackInteractor.print(message: "Branch `\(sourceBranch)` is merged to `\(destination)`.")
4244
} catch {
43-
try slackInteractor.print(error: error)
4445
throw error
4546
}
4647
}

Sources/SwiftTools/Git/Merge/Domain/MergeSlackInteractor.swift

-39
This file was deleted.

Sources/SwiftTools/Git/Merge/Domain/MergeStartInteractor.swift

+7-4
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,19 @@ public protocol MergeStartInteractor {
1414
final class MergeStartInteractorImpl: MergeStartInteractor {
1515
private let statusInteractor: MergeStatusInteractor
1616
private let processInteractor: MergeProcessInteractor
17-
private let slackInteractor: MergeSlackInteractor
1817
private let printService: PrintService
1918
private let destinationBranchInteractor: MergeDestinationBranchInteractor
2019
private let updateInteractor: UpdateInteractor
2120

22-
init(statusInteractor: MergeStatusInteractor, processInteractor: MergeProcessInteractor, slackInteractor: MergeSlackInteractor, printService: PrintService, destinationBranchInteractor: MergeDestinationBranchInteractor, updateInteractor: UpdateInteractor) {
21+
init(
22+
statusInteractor: MergeStatusInteractor,
23+
processInteractor: MergeProcessInteractor,
24+
printService: PrintService,
25+
destinationBranchInteractor: MergeDestinationBranchInteractor,
26+
updateInteractor: UpdateInteractor
27+
) {
2328
self.statusInteractor = statusInteractor
2429
self.processInteractor = processInteractor
25-
self.slackInteractor = slackInteractor
2630
self.printService = printService
2731
self.destinationBranchInteractor = destinationBranchInteractor
2832
self.updateInteractor = updateInteractor
@@ -43,7 +47,6 @@ final class MergeStartInteractorImpl: MergeStartInteractor {
4347
try updateInteractor.updateXcodeSelect()
4448
try updateInteractor.updateTools()
4549
} catch {
46-
try slackInteractor.print(error: error)
4750
throw error
4851
}
4952
}

Sources/SwiftTools/Git/Merge/Injection/MergeAssembly.swift

-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ public final class MergeAssembly: Assembly {
1717
container.autoregister(MergeProcessInteractor.self, initializer: MergeProcessInteractorImpl.init)
1818
container.autoregister(MergeDestinationBranchInteractor.self, initializer: MergeDestinationBranchInteractorImpl.init)
1919
container.autoregister(MergeFinishInteractor.self, initializer: MergeFinishInteractorImpl.init)
20-
container.autoregister(MergeSlackInteractor.self, initializer: MergeSlackInteractorImpl.init)
2120
}
2221
}

Sources/SwiftTools/SwiftToolsAssemblies.swift

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public enum SwiftToolsAssemblies {
1919
NetworkAssembly(),
2020
PrintAssembly(),
2121
ShellAssembly(),
22-
SlackAssembly(),
2322
FormatAssembly(),
2423
MergeAssembly(),
2524
SynchronizeLatestReleaseAssembly(),

0 commit comments

Comments
 (0)