{"action":"created","issue":{"url":"https://api.github.com/repos/RexOps/Rex/issues/1063","repository_url":"https://api.github.com/repos/RexOps/Rex","labels_url":"https://api.github.com/repos/RexOps/Rex/issues/1063/labels{/name}","comments_url":"https://api.github.com/repos/RexOps/Rex/issues/1063/comments","events_url":"https://api.github.com/repos/RexOps/Rex/issues/1063/events","html_url":"https://github.com/RexOps/Rex/pull/1063","id":163440147,"number":1063,"title":"Don't add duplicates env variable in crontab","user":{"login":"rapenne-s","id":248016,"avatar_url":"https://avatars.githubusercontent.com/u/248016?v=3","gravatar_id":"","url":"https://api.github.com/users/rapenne-s","html_url":"https://github.com/rapenne-s","followers_url":"https://api.github.com/users/rapenne-s/followers","following_url":"https://api.github.com/users/rapenne-s/following{/other_user}","gists_url":"https://api.github.com/users/rapenne-s/gists{/gist_id}","starred_url":"https://api.github.com/users/rapenne-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapenne-s/subscriptions","organizations_url":"https://api.github.com/users/rapenne-s/orgs","repos_url":"https://api.github.com/users/rapenne-s/repos","events_url":"https://api.github.com/users/rapenne-s/events{/privacy}","received_events_url":"https://api.github.com/users/rapenne-s/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/RexOps/Rex/milestones/52","html_url":"https://github.com/RexOps/Rex/milestones/1.4.1","labels_url":"https://api.github.com/repos/RexOps/Rex/milestones/52/labels","id":1462990,"number":52,"title":"1.4.1","description":"","creator":{"login":"ferki","id":3117609,"avatar_url":"https://avatars.githubusercontent.com/u/3117609?v=3","gravatar_id":"","url":"https://api.github.com/users/ferki","html_url":"https://github.com/ferki","followers_url":"https://api.github.com/users/ferki/followers","following_url":"https://api.github.com/users/ferki/following{/other_user}","gists_url":"https://api.github.com/users/ferki/gists{/gist_id}","starred_url":"https://api.github.com/users/ferki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferki/subscriptions","organizations_url":"https://api.github.com/users/ferki/orgs","repos_url":"https://api.github.com/users/ferki/repos","events_url":"https://api.github.com/users/ferki/events{/privacy}","received_events_url":"https://api.github.com/users/ferki/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":43,"state":"open","created_at":"2015-12-16T11:02:40Z","updated_at":"2016-07-01T17:29:47Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-07-01T17:26:38Z","updated_at":"2016-07-01T17:43:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RexOps/Rex/pulls/1063","html_url":"https://github.com/RexOps/Rex/pull/1063","diff_url":"https://github.com/RexOps/Rex/pull/1063.diff","patch_url":"https://github.com/RexOps/Rex/pull/1063.patch"},"body":"Actually if you add an env variable to a crontab it will be added even if it's already in the file.\r\n\r\nWith this commit, it checks if it exists and then\r\nexists with same value as the new one => we do nothing\r\nexists with a different value => we remove it using its index and we add the new one"},"comment":{"url":"https://api.github.com/repos/RexOps/Rex/issues/comments/230007125","html_url":"https://github.com/RexOps/Rex/pull/1063#issuecomment-230007125","issue_url":"https://api.github.com/repos/RexOps/Rex/issues/1063","id":230007125,"user":{"login":"krimdomu","id":388436,"avatar_url":"https://avatars.githubusercontent.com/u/388436?v=3","gravatar_id":"","url":"https://api.github.com/users/krimdomu","html_url":"https://github.com/krimdomu","followers_url":"https://api.github.com/users/krimdomu/followers","following_url":"https://api.github.com/users/krimdomu/following{/other_user}","gists_url":"https://api.github.com/users/krimdomu/gists{/gist_id}","starred_url":"https://api.github.com/users/krimdomu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krimdomu/subscriptions","organizations_url":"https://api.github.com/users/krimdomu/orgs","repos_url":"https://api.github.com/users/krimdomu/repos","events_url":"https://api.github.com/users/krimdomu/events{/privacy}","received_events_url":"https://api.github.com/users/krimdomu/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T17:43:35Z","updated_at":"2016-07-01T17:43:35Z","body":"Hi @rapenne-s ,\r\n\r\nthank you for this patch. I've just merged it into development branch and also into the 1.4 branch. Which is the branch for the next 1.4.1 bugfix release where we are currently working to make it stable."}}
{"actor":{"display_login":"krimdomu"}}