Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 7e3e59d

Browse files
author
Noah Hanjun Lee
authored
Add OSS version review.go (#207)
1 parent 8bbdc11 commit 7e3e59d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

internal/interactor/review.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
// Copyright 2021 Gitploy.IO Inc. All rights reserved.
2+
// Use of this source code is governed by the Gitploy Non-Commercial License
3+
// that can be found in the LICENSE file.
4+
5+
// +build !oss
6+
17
package interactor
28

39
import (
410
"context"
511

12+
"go.uber.org/zap"
13+
614
"github.com/gitploy-io/gitploy/ent"
715
"github.com/gitploy-io/gitploy/ent/event"
8-
"go.uber.org/zap"
916
)
1017

1118
func (i *Interactor) requestReviewByLogin(ctx context.Context, d *ent.Deployment, login string) (*ent.Review, error) {

internal/interactor/review_oss.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// +build oss
2+
3+
package interactor
4+
5+
import (
6+
"context"
7+
8+
"github.com/gitploy-io/gitploy/ent"
9+
"github.com/gitploy-io/gitploy/pkg/e"
10+
)
11+
12+
func (i *Interactor) requestReviewByLogin(ctx context.Context, d *ent.Deployment, login string) (*ent.Review, error) {
13+
return nil, e.NewError(e.ErrorCodeLicenseRequired, nil)
14+
}

0 commit comments

Comments
 (0)