File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 55 "github.com/pkg/errors"
66)
77
8+ const prCommentSuccess = "PR comment created successfully."
9+
810type PRMockWrapper struct {
911}
1012
@@ -15,15 +17,15 @@ func (pr *PRMockWrapper) PostPRDecoration(model interface{}) (
1517) {
1618 switch model .(type ) {
1719 case * wrappers.PRModel :
18- return "PR comment created successfully." , nil , nil
20+ return prCommentSuccess , nil , nil
1921 case * wrappers.GitlabPRModel :
2022 return "MR comment created successfully." , nil , nil
2123 case * wrappers.BitbucketCloudPRModel :
2224 return "Bitbucket Cloud PR comment created successfully." , nil , nil
2325 case * wrappers.BitbucketServerPRModel :
2426 return "Bitbucket Server PR comment created successfully." , nil , nil
2527 case * wrappers.AzurePRModel :
26- return "PR comment created successfully." , nil , nil
28+ return prCommentSuccess , nil , nil
2729
2830 default :
2931 return "" , nil , errors .New ("unsupported model type" )
You can’t perform that action at this time.
0 commit comments