File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ - (void)setComment_content:(NSString *)comment_content{
3131 }
3232}
3333
34+ - (NSString *)ref_type {
35+ if ([_ref_type isEqualToString: @" tag" ]) {
36+ return @" 标签" ;
37+ }else if ([_ref_type isEqualToString: @" branch" ]){
38+ return @" 分支" ;
39+ }else {
40+ return _ref_type;
41+ }
42+ }
43+
3444- (void )addActionUser : (User *)curUser {
3545 if (curUser) {
3646 [_actionStr appendString: @" " ];
@@ -102,7 +112,7 @@ - (NSMutableString *)actionStr{
102112 [_actionStr appendString: [_type isEqualToString: @" dir" ]? @" 文件夹" : @" 文件" ];
103113 }else if ([_target_type isEqualToString: @" Depot" ]){
104114 if ([_action isEqualToString: @" push" ]) {
105- [_actionStr appendFormat: @" 项目分支 [%@ ]" , _ref];
115+ [_actionStr appendFormat: @" 项目 %@ [%@ ]" , self .ref_type , _ref];
106116 }else if ([_action isEqualToString: @" fork" ]){
107117 [_actionStr appendFormat: @" 项目 [%@ ] 到 [%@ ]" , _source_depot.name, _depot.name];
108118 }
You can’t perform that action at this time.
0 commit comments