Skip to content

Commit

Permalink
Merge branch 'release/v0.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
moooofly committed Jul 11, 2018
2 parents 1442136 + 3d5ce7e commit aecbcfa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## v0.8.0 (2018-7-11)

### New Features

### Improvements

### Bug Fixes

* Fix compatibility issue derived from harbor v1.3.0. close #2

## v0.7.0 (2018-7-6)

### New Features
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.7.0
v0.8.0
14 changes: 7 additions & 7 deletions utils/retention_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var repos []*repoTop
type repoSearch struct {
ProjectID int `json:"project_id"`
ProjectName string `json:"project_name"`
ProjectPublic int `json:"project_public"`
ProjectPublic bool `json:"project_public"`
PullCount int `json:"pull_count"`
RepositoryName string `json:"repository_name"`
TagsCount int `json:"tags_count"`
Expand Down Expand Up @@ -118,9 +118,9 @@ func (x *tagsRetentionPolicy) Execute(args []string) error {
}

func tagAnalyseAndErase() error {
fmt.Println("=========================")
fmt.Println("== 开始 tags RP 分析 ==")
fmt.Println("=========================")
fmt.Println("===============================")
fmt.Println("== Start tags RP Analysing ==")
fmt.Println("===============================")
fmt.Println()

c, err := CookieLoad()
Expand Down Expand Up @@ -233,7 +233,7 @@ func tagAnalyseAndErase() error {
}
}

fmt.Printf("\n=== 完成 tags RP 分析 ===\n\n")
fmt.Printf("\n=== Finish tags RP Analysing ===\n\n")

return nil
}
Expand Down Expand Up @@ -482,7 +482,7 @@ func repoErase() error {
return fmt.Errorf("error: the number is out of range")
}

fmt.Printf("\n=== 开始 soft deletion ===\n\n")
fmt.Printf("\n=== Start soft deletion ===\n\n")

for num > 0 {
if minh.Len() > 0 {
Expand All @@ -508,7 +508,7 @@ func repoErase() error {
num--
}

fmt.Printf("\n=== 完成 soft deletion ===\n\n")
fmt.Printf("\n=== Finish soft deletion ===\n\n")
return nil
}

Expand Down

0 comments on commit aecbcfa

Please sign in to comment.