{"action":"created","issue":{"url":"https://api.github.com/repos/chilcote/outset/issues/20","repository_url":"https://api.github.com/repos/chilcote/outset","labels_url":"https://api.github.com/repos/chilcote/outset/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/chilcote/outset/issues/20/comments","events_url":"https://api.github.com/repos/chilcote/outset/issues/20/events","html_url":"https://github.com/chilcote/outset/issues/20","id":102144656,"number":20,"title":"timestamp OR sha1?","user":{"login":"arubdesu","id":388808,"avatar_url":"https://avatars.githubusercontent.com/u/388808?v=3","gravatar_id":"","url":"https://api.github.com/users/arubdesu","html_url":"https://github.com/arubdesu","followers_url":"https://api.github.com/users/arubdesu/followers","following_url":"https://api.github.com/users/arubdesu/following{/other_user}","gists_url":"https://api.github.com/users/arubdesu/gists{/gist_id}","starred_url":"https://api.github.com/users/arubdesu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arubdesu/subscriptions","organizations_url":"https://api.github.com/users/arubdesu/orgs","repos_url":"https://api.github.com/users/arubdesu/repos","events_url":"https://api.github.com/users/arubdesu/events{/privacy}","received_events_url":"https://api.github.com/users/arubdesu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"chilcote","id":305026,"avatar_url":"https://avatars.githubusercontent.com/u/305026?v=3","gravatar_id":"","url":"https://api.github.com/users/chilcote","html_url":"https://github.com/chilcote","followers_url":"https://api.github.com/users/chilcote/followers","following_url":"https://api.github.com/users/chilcote/following{/other_user}","gists_url":"https://api.github.com/users/chilcote/gists{/gist_id}","starred_url":"https://api.github.com/users/chilcote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chilcote/subscriptions","organizations_url":"https://api.github.com/users/chilcote/orgs","repos_url":"https://api.github.com/users/chilcote/repos","events_url":"https://api.github.com/users/chilcote/events{/privacy}","received_events_url":"https://api.github.com/users/chilcote/received_events","type":"User","site_admin":false},"assignees":[{"login":"chilcote","id":305026,"avatar_url":"https://avatars.githubusercontent.com/u/305026?v=3","gravatar_id":"","url":"https://api.github.com/users/chilcote","html_url":"https://github.com/chilcote","followers_url":"https://api.github.com/users/chilcote/followers","following_url":"https://api.github.com/users/chilcote/following{/other_user}","gists_url":"https://api.github.com/users/chilcote/gists{/gist_id}","starred_url":"https://api.github.com/users/chilcote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chilcote/subscriptions","organizations_url":"https://api.github.com/users/chilcote/orgs","repos_url":"https://api.github.com/users/chilcote/repos","events_url":"https://api.github.com/users/chilcote/events{/privacy}","received_events_url":"https://api.github.com/users/chilcote/received_events","type":"User","site_admin":false}],"milestone":null,"comments":24,"created_at":"2015-08-20T13:57:14Z","updated_at":"2016-12-11T08:44:47Z","closed_at":null,"body":"Current behavior is that it won't re-run a script if it has the same name. Which is a feature, no doubt, but I'm wondering if other behavior can be added for `login-once`'s, maybe via an `optparse`-included option like '--trigger', to match a sha1? Therefore updating the login-once script would cause a fresh run. Normal warnings about trying to make sure checks are in place so this doesn't cause undesirable behavior is warranted, but seems advantageous to at least support as an arg: temporarily override the launchA for that flag, change it back after compliance is met.\nScope creep?\n"},"comment":{"url":"https://api.github.com/repos/chilcote/outset/issues/comments/266270367","html_url":"https://github.com/chilcote/outset/issues/20#issuecomment-266270367","issue_url":"https://api.github.com/repos/chilcote/outset/issues/20","id":266270367,"user":{"login":"erikng","id":5685016,"avatar_url":"https://avatars.githubusercontent.com/u/5685016?v=3","gravatar_id":"","url":"https://api.github.com/users/erikng","html_url":"https://github.com/erikng","followers_url":"https://api.github.com/users/erikng/followers","following_url":"https://api.github.com/users/erikng/following{/other_user}","gists_url":"https://api.github.com/users/erikng/gists{/gist_id}","starred_url":"https://api.github.com/users/erikng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikng/subscriptions","organizations_url":"https://api.github.com/users/erikng/orgs","repos_url":"https://api.github.com/users/erikng/repos","events_url":"https://api.github.com/users/erikng/events{/privacy}","received_events_url":"https://api.github.com/users/erikng/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T08:44:47Z","updated_at":"2016-12-11T08:44:47Z","body":"I agree with Joe, but here is a suggestion: create your own timestamp mechanism and run it with login-every. I did this at my last job and the script would only rerun if the time stamp on the script was newer than the last expected time stamp.\n\nThere's many ways to work around this with zero changes to outset that could impact other users.\n\nSent from my iPad\n\nOn Dec 10, 2016, at 9:27 PM, Joseph Chilcote <notifications@github.com<mailto:notifications@github.com>> wrote:\n\n\nThat's not the direction I went with https://github.com/chilcote/outset/tree/updating_scripts. As long as you don't change the name of the script, it won't run again unless you call it out in the plist.\n\nUltimately, I believe that the best solution for this sort of thing is to make the scripts idempotent and put them in login-every, to ensure that the setting you intend is only changed if needed. Then you can update that script at will. Login once is great for \"settings that are stuck in time,\" but not really ideal for \"settings that evolve over time.\" However, that branch should give the admin the flexibility to re-use scripts in login-once if needed.\n\nMy solution may be too clever, and I'm happy to take more feedback. If enough people think it's worth it, I'm happy to merge. Honestly, I haven't really had time or need to do more testing on this feature.\n\n-\nYou are receiving this because you were mentioned.\nReply to this email directly, view it on GitHub<https://github.com/chilcote/outset/issues/20#issuecomment-266264314>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFa_GEc59H2glXkGNAQ5i0yRKeF9KEkRks5rG4nUgaJpZM4FvJYr>.\n"}}
{"actor":{"display_login":"erikng"}}