{"action":"created","issue":{"url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/333","repository_url":"https://api.github.com/repos/STAT545-UBC/Discussion","labels_url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/333/comments","events_url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/333/events","html_url":"https://github.com/STAT545-UBC/Discussion/issues/333","id":178784227,"number":333,"title":"GitHub Recommendations for Lab Data and Collaborating","user":{"login":"scienceisfiction","id":17031458,"avatar_url":"https://avatars.githubusercontent.com/u/17031458?v=3","gravatar_id":"","url":"https://api.github.com/users/scienceisfiction","html_url":"https://github.com/scienceisfiction","followers_url":"https://api.github.com/users/scienceisfiction/followers","following_url":"https://api.github.com/users/scienceisfiction/following{/other_user}","gists_url":"https://api.github.com/users/scienceisfiction/gists{/gist_id}","starred_url":"https://api.github.com/users/scienceisfiction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scienceisfiction/subscriptions","organizations_url":"https://api.github.com/users/scienceisfiction/orgs","repos_url":"https://api.github.com/users/scienceisfiction/repos","events_url":"https://api.github.com/users/scienceisfiction/events{/privacy}","received_events_url":"https://api.github.com/users/scienceisfiction/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-23T04:49:47Z","updated_at":"2016-09-23T15:22:45Z","closed_at":null,"body":"Hi @jennybc,\r\n\r\nI've been discussing with my PI the possibility of opening a GitHub account for our lab so that we can share data, code, etc. and collaborate more easily. I'm wondering what types of startup recommendations you would have. For example, should we open a GitHub account for the lab that one person will be in charge of managing and then everyone will also have their own private accounts? Or should the PI's account also be the lab's account? While he is all for making GitHub mandatory for all lab members in the future, I don't see him actually managing the account himself, so it seems like it should be it's own freestanding account... Are there other things we should be considering during initial setup?\r\n\r\nOn a similar note, a labmate (@andreagaede) and I would like to work collaboratively via GitHub. She is in charge of the project, so initial data is in her master branch; should I branch or fork off of her repo if I would like to contribute? Which offers the most flexibility/ease of collaborating if we anticipate working on the same data and code, potentially at the same time?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/comments/249222171","html_url":"https://github.com/STAT545-UBC/Discussion/issues/333#issuecomment-249222171","issue_url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/333","id":249222171,"user":{"login":"jennybc","id":599454,"avatar_url":"https://avatars.githubusercontent.com/u/599454?v=3","gravatar_id":"","url":"https://api.github.com/users/jennybc","html_url":"https://github.com/jennybc","followers_url":"https://api.github.com/users/jennybc/followers","following_url":"https://api.github.com/users/jennybc/following{/other_user}","gists_url":"https://api.github.com/users/jennybc/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybc/subscriptions","organizations_url":"https://api.github.com/users/jennybc/orgs","repos_url":"https://api.github.com/users/jennybc/repos","events_url":"https://api.github.com/users/jennybc/events{/privacy}","received_events_url":"https://api.github.com/users/jennybc/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T15:22:45Z","updated_at":"2016-09-23T15:22:45Z","body":"Big topics!\r\n\r\n**Set up for a lab**. I recommend that the lab create an [Organaization](https://help.github.com/categories/organizations/). That should be done by the PI. He can also request an [Education discount](https://education.github.com) for this Organization, so that it will have unlimited private repositories. Most of the lab work should probably happen in repositories owned by this Organization, be they public or private. Lab members will use their personal accounts to interact with GitHub but will mostly be working in these Organization-owned repos. Does that make sense?\r\n\r\nIf your PI won't embrace day-to-day GitHub admin, then he can add one or more of the keeners as \"Owners\" of the org. That way you will be able to create new private repos, invite other lab members to the organization, etc.\r\n\r\nThen you can create Teams. You can give people read vs write vs admin permission on various repos in their capacity as individuals (\"collaborator\") or at the Team level (more efficient to give everyone in the lab access to something). Teams are also very handy for tagging in issues, if you want everyone to receive a notification they should read a thread.\r\n\r\n**Collaborative work**. It sounds like @andreagaede should add you as a collaborator to this repo. Two people is a small team and it sounds like you'd be contributing a lot. The \"fork\" model is more often used when a project is truly owned by 1 person and external people make occasional contributions.\r\n\r\nYou may still want to use branches and pull requests instead of always committing directly to master. Maybe you two would agree that, for example, you will always propose changes this way, so she gets a chance to look it over before merging into master. She might elect to work this way, , because the pull request mechanism is a nice way to converse about changes before merging them in."}}
{"actor":{"display_login":"jennybc"}}