)]}'
{"playbooks/roles/gitea-git-repos/library/gitea_create_repos.py":[{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"186477894968e44fb9afc9fb612a4db5c54ed006","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        # the gerrit side. Once Gerrit and Gitea can be configured this could"},{"line_number":134,"context_line":"        # be used on new repos."},{"line_number":135,"context_line":"        if project.get(\u0027default-branch\u0027):"},{"line_number":136,"context_line":"            repo_properties[\u0027default_branch\u0027] \u003d project.get(\u0027default-branch\u0027)"},{"line_number":137,"context_line":"        resp \u003d self.post("},{"line_number":138,"context_line":"            \u0027/api/v1/org/{org}/repos\u0027.format(org\u003dorg),"},{"line_number":139,"context_line":"            json\u003drepo_properties)"}],"source_content_type":"text/x-python","patch_set":1,"id":"bf51134e_66469ec2","line":136,"updated":"2020-07-15 16:32:57.000000000","message":"One thing I wonder is if we should default to \u0027master\u0027 here and always set the value. That way if we decide that we want a different default value we can make that transition when we are ready and not when we accidentally pull in a new version of git that has made a change upstream.","commit_id":"093fe2d45c82dceea45e429e3ed5c7f2c6c63450"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"8204180cc5184714dd901b06b230a55341ee2e0c","unresolved":false,"context_lines":[{"line_number":123,"context_line":"    def make_gitea_project(self, project, csrf_token):"},{"line_number":124,"context_line":"        org, repo \u003d project[\u0027project\u0027].split(\u0027/\u0027, 1)"},{"line_number":125,"context_line":"        resp \u003d self.post("},{"line_number":126,"context_line":"            \u0027/api/v1/org/{org}/repos\u0027.format(org\u003dorg),"},{"line_number":127,"context_line":"            json\u003ddict("},{"line_number":128,"context_line":"                auto_init\u003dTrue,"},{"line_number":129,"context_line":"                description\u003dproject.get(\u0027description\u0027, \u0027\u0027)[:255],"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf51134e_2ddf3bd7","side":"PARENT","line":126,"updated":"2020-07-17 19:56:18.000000000","message":"We should probably have a follow-on patch to update this.","commit_id":"8e0420ddf3c48e024480fd17285838c6a7aaa07c"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"8204180cc5184714dd901b06b230a55341ee2e0c","unresolved":false,"context_lines":[{"line_number":132,"context_line":"                # Note we default to master to avoid relying on tool defaults"},{"line_number":133,"context_line":"                # as we currently rely on Gitea, Gerrit, and Git to all be in"},{"line_number":134,"context_line":"                # sync which may not be the case going forward."},{"line_number":135,"context_line":"                \u0027default_branch\u0027: project.get(\u0027default-branch\u0027, \u0027master\u0027),"},{"line_number":136,"context_line":"                \u0027private\u0027: False,"},{"line_number":137,"context_line":"                \u0027readme\u0027: \u0027Default\u0027,"},{"line_number":138,"context_line":"            }"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf51134e_8deda790","line":135,"updated":"2020-07-17 19:56:18.000000000","message":"I recommend we also change this default if/when Git upstream changes its default (and make an announcement at that time so that folks who still want the old default branch name can start to explicitly set it).","commit_id":"1e2a34704a9232f3b16c659dbea58d35bdc8f3f4"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"08279dcd90d964ef14558898b910d365e286f515","unresolved":false,"context_lines":[{"line_number":132,"context_line":"                # Note we default to master to avoid relying on tool defaults"},{"line_number":133,"context_line":"                # as we currently rely on Gitea, Gerrit, and Git to all be in"},{"line_number":134,"context_line":"                # sync which may not be the case going forward."},{"line_number":135,"context_line":"                \u0027default_branch\u0027: project.get(\u0027default-branch\u0027, \u0027master\u0027),"},{"line_number":136,"context_line":"                \u0027private\u0027: False,"},{"line_number":137,"context_line":"                \u0027readme\u0027: \u0027Default\u0027,"},{"line_number":138,"context_line":"            }"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf51134e_9bd4cfbd","line":135,"updated":"2020-07-16 23:33:26.000000000","message":"agree this is the correct API tag according to docs","commit_id":"1e2a34704a9232f3b16c659dbea58d35bdc8f3f4"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"08279dcd90d964ef14558898b910d365e286f515","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                \u0027readme\u0027: \u0027Default\u0027,"},{"line_number":138,"context_line":"            }"},{"line_number":139,"context_line":"        resp \u003d self.post("},{"line_number":140,"context_line":"            \u0027/api/v1/org/{org}/repos\u0027.format(org\u003dorg),"},{"line_number":141,"context_line":"            json\u003drepo_properties)"},{"line_number":142,"context_line":"        self.log(\"Created repo:\", project[\u0027project\u0027])"},{"line_number":143,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf51134e_7bce1b2e","line":140,"updated":"2020-07-16 23:33:26.000000000","message":"on a related note, it seems this has become \"orgs\" (with an s) and this is deprecated\n\nhttps://try.gitea.io/api/swagger#/organization/createOrgRepo","commit_id":"1e2a34704a9232f3b16c659dbea58d35bdc8f3f4"}]}
