klesh commented on code in PR #3847:
URL:
https://github.com/apache/incubator-devlake/pull/3847#discussion_r1040552672
##########
plugins/gitlab/models/transformation_rule.go:
##########
@@ -17,21 +17,25 @@ limitations under the License.
package models
-import "github.com/apache/incubator-devlake/models/common"
+import (
+ "github.com/apache/incubator-devlake/models/common"
+ "gorm.io/datatypes"
+)
type GitlabTransformationRule struct {
common.Model
- Name string `gorm:"type:varchar(255)"`
- PrType string `mapstructure:"prType" json:"prType"`
- PrComponent string `mapstructure:"prComponent"
json:"prComponent"`
- PrBodyClosePattern string `mapstructure:"prBodyClosePattern"
json:"prBodyClosePattern"`
- IssueSeverity string `mapstructure:"issueSeverity"
json:"issueSeverity"`
- IssuePriority string `mapstructure:"issuePriority"
json:"issuePriority"`
- IssueComponent string `mapstructure:"issueComponent"
json:"issueComponent"`
- IssueTypeBug string `mapstructure:"issueTypeBug"
json:"issueTypeBug"`
- IssueTypeIncident string `mapstructure:"issueTypeIncident"
json:"issueTypeIncident"`
- IssueTypeRequirement string `mapstructure:"issueTypeRequirement"
json:"issueTypeRequirement"`
- DeploymentPattern string `mapstructure:"deploymentPattern"
json:"deploymentPattern"`
+ Name string `gorm:"type:varchar(255)"`
+ PrType string `mapstructure:"prType"
json:"prType"`
+ PrComponent string `mapstructure:"prComponent"
json:"prComponent"`
+ PrBodyClosePattern string
`mapstructure:"prBodyClosePattern" json:"prBodyClosePattern"`
+ IssueSeverity string `mapstructure:"issueSeverity"
json:"issueSeverity"`
+ IssuePriority string `mapstructure:"issuePriority"
json:"issuePriority"`
+ IssueComponent string `mapstructure:"issueComponent"
json:"issueComponent"`
+ IssueTypeBug string `mapstructure:"issueTypeBug"
json:"issueTypeBug"`
+ IssueTypeIncident string
`mapstructure:"issueTypeIncident" json:"issueTypeIncident"`
+ IssueTypeRequirement string
`mapstructure:"issueTypeRequirement" json:"issueTypeRequirement"`
+ DeploymentPattern string
`mapstructure:"deploymentPattern" json:"deploymentPattern"`
+ RefdiffRule datatypes.JSONMap
`mapstructure:"refdiff,omitempty" json:"refdiff" swaggertype:"object"
format:"json"`
Review Comment:
Please rename to `Refdiff`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]