{"action":"created","issue":{"url":"https://api.github.com/repos/wooey/Wooey/issues/184","repository_url":"https://api.github.com/repos/wooey/Wooey","labels_url":"https://api.github.com/repos/wooey/Wooey/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/wooey/Wooey/issues/184/comments","events_url":"https://api.github.com/repos/wooey/Wooey/issues/184/events","html_url":"https://github.com/wooey/Wooey/issues/184","id":243140448,"number":184,"title":"Sync wooey script with a file in a version control repository on Github or Gitlab","user":{"login":"yaoyuyang","id":3639992,"avatar_url":"https://avatars4.githubusercontent.com/u/3639992?v=4","gravatar_id":"","url":"https://api.github.com/users/yaoyuyang","html_url":"https://github.com/yaoyuyang","followers_url":"https://api.github.com/users/yaoyuyang/followers","following_url":"https://api.github.com/users/yaoyuyang/following{/other_user}","gists_url":"https://api.github.com/users/yaoyuyang/gists{/gist_id}","starred_url":"https://api.github.com/users/yaoyuyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaoyuyang/subscriptions","organizations_url":"https://api.github.com/users/yaoyuyang/orgs","repos_url":"https://api.github.com/users/yaoyuyang/repos","events_url":"https://api.github.com/users/yaoyuyang/events{/privacy}","received_events_url":"https://api.github.com/users/yaoyuyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-15T00:24:03Z","updated_at":"2017-07-15T01:26:26Z","closed_at":null,"body":"It would be nice if we could bring in and sync with a file that is in a version control repository on Github or Gitlab. The pain point I have is that I'm developing a few Wooey scripts, and have to upload in Wooey constantly to update the script. I have a git repo that tracks every Wooey script. The ideal feature I want is: make a commit to the script, push to a git repo and the script in Wooey automatically updates.\r\n\r\nI think as a first step, we can add a feature in Wooey script admin page that allows entering an url (like a url link to the github raw file) for each script and a button to manually pull script from this url. Every time you hit the button, it pulls the file and updates the script in Wooey if it's different from previous version and iteration.\r\n\r\nI think the bigger picture here is that for a group or person that has many Wooey scripts to maintain, how to effectively manage and update these scripts. I think making a link between the Wooey scripts and git repo would be a good direction.\r\n\r\nI'm open to any discussions! Thanks!"},"comment":{"url":"https://api.github.com/repos/wooey/Wooey/issues/comments/315500231","html_url":"https://github.com/wooey/Wooey/issues/184#issuecomment-315500231","issue_url":"https://api.github.com/repos/wooey/Wooey/issues/184","id":315500231,"user":{"login":"Chris7","id":963909,"avatar_url":"https://avatars6.githubusercontent.com/u/963909?v=4","gravatar_id":"","url":"https://api.github.com/users/Chris7","html_url":"https://github.com/Chris7","followers_url":"https://api.github.com/users/Chris7/followers","following_url":"https://api.github.com/users/Chris7/following{/other_user}","gists_url":"https://api.github.com/users/Chris7/gists{/gist_id}","starred_url":"https://api.github.com/users/Chris7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chris7/subscriptions","organizations_url":"https://api.github.com/users/Chris7/orgs","repos_url":"https://api.github.com/users/Chris7/repos","events_url":"https://api.github.com/users/Chris7/events{/privacy}","received_events_url":"https://api.github.com/users/Chris7/received_events","type":"User","site_admin":false},"created_at":"2017-07-15T01:26:26Z","updated_at":"2017-07-15T01:26:26Z","body":"Hey @yaoyuyang,\r\n\r\nThere is an outstanding PR here: https://github.com/wooey/Wooey/pull/55 that does exactly that. You could give it a try for the first part.\r\n\r\nFor the second part, there is a command line way to add scripts to wooey that can update scripts. `python manage.py addscript --update <script or folder>`. You can easily set a watch on a directory to trigger this, or trigger it as part of a CI."}}
{"actor":{"display_login":"Chris7"}}