{"action":"created","issue":{"url":"https://api.github.com/repos/goharbor/harbor/issues/5924","repository_url":"https://api.github.com/repos/goharbor/harbor","labels_url":"https://api.github.com/repos/goharbor/harbor/issues/5924/labels{/name}","comments_url":"https://api.github.com/repos/goharbor/harbor/issues/5924/comments","events_url":"https://api.github.com/repos/goharbor/harbor/issues/5924/events","html_url":"https://github.com/goharbor/harbor/pull/5924","id":361567985,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NTA2Nzgy","number":5924,"title":"Fix statuses condition when trigger replication","user":{"login":"cd1989","id":16573984,"node_id":"MDQ6VXNlcjE2NTczOTg0","avatar_url":"https://avatars0.githubusercontent.com/u/16573984?v=4","gravatar_id":"","url":"https://api.github.com/users/cd1989","html_url":"https://github.com/cd1989","followers_url":"https://api.github.com/users/cd1989/followers","following_url":"https://api.github.com/users/cd1989/following{/other_user}","gists_url":"https://api.github.com/users/cd1989/gists{/gist_id}","starred_url":"https://api.github.com/users/cd1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cd1989/subscriptions","organizations_url":"https://api.github.com/users/cd1989/orgs","repos_url":"https://api.github.com/users/cd1989/repos","events_url":"https://api.github.com/users/cd1989/events{/privacy}","received_events_url":"https://api.github.com/users/cd1989/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-19T03:52:33Z","updated_at":"2018-10-02T19:44:42Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/goharbor/harbor/pulls/5924","html_url":"https://github.com/goharbor/harbor/pull/5924","diff_url":"https://github.com/goharbor/harbor/pull/5924.diff","patch_url":"https://github.com/goharbor/harbor/pull/5924.patch"},"body":"Signed-off-by: 陈德 <chende@caicloud.io>\r\n\r\nWhen trigger a replication policy, Harbor will check whether the policy has related jobs that are pending or running. But there is some mistake in the check.\r\n\r\n```\r\ncount, err := dao.GetTotalCountOfRepJobs(&models.RepJobQuery{\r\n\tPolicyID: replication.PolicyID,\r\n\tStatuses: []string{models.RepOpTransfer, models.RepOpDelete},\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/goharbor/harbor/issues/comments/426405122","html_url":"https://github.com/goharbor/harbor/pull/5924#issuecomment-426405122","issue_url":"https://api.github.com/repos/goharbor/harbor/issues/5924","id":426405122,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjQwNTEyMg==","user":{"login":"clouderati","id":35942204,"node_id":"MDQ6VXNlcjM1OTQyMjA0","avatar_url":"https://avatars0.githubusercontent.com/u/35942204?v=4","gravatar_id":"","url":"https://api.github.com/users/clouderati","html_url":"https://github.com/clouderati","followers_url":"https://api.github.com/users/clouderati/followers","following_url":"https://api.github.com/users/clouderati/following{/other_user}","gists_url":"https://api.github.com/users/clouderati/gists{/gist_id}","starred_url":"https://api.github.com/users/clouderati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouderati/subscriptions","organizations_url":"https://api.github.com/users/clouderati/orgs","repos_url":"https://api.github.com/users/clouderati/repos","events_url":"https://api.github.com/users/clouderati/events{/privacy}","received_events_url":"https://api.github.com/users/clouderati/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T19:44:42Z","updated_at":"2018-10-02T19:44:42Z","author_association":"CONTRIBUTOR","body":"lgtm – @reasonerjt ptal"}}
{"actor":{"display_login":"clouderati"}}