From b076aefa0864dc12269a4454a921f4830b2a2d9a Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 3 Mar 2019 21:55:06 +0000 Subject: [PATCH] Revert "Set default branch for repo" This is 404ing. It's not strictly needed for the moment, let's come back to it. This reverts commit 266b2dd3fc4bcbe2416f77f34540705a6ba6cdde. Change-Id: Id9ab3c233753025d7a01eb4664ecee6d102bbf19 --- .../roles/gitea-git-repos/tasks/setup-repo.yaml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/playbooks/roles/gitea-git-repos/tasks/setup-repo.yaml b/playbooks/roles/gitea-git-repos/tasks/setup-repo.yaml index 10aeed4310..68f04b7e9a 100644 --- a/playbooks/roles/gitea-git-repos/tasks/setup-repo.yaml +++ b/playbooks/roles/gitea-git-repos/tasks/setup-repo.yaml @@ -45,17 +45,3 @@ external_tracker_url: "https://storyboard.openstack.org/#!/project/{{ org }}/{{ repo }}" tracker_url_format: https://storyboard.openstack.org/#!/story/{index} tracker_issue_style: numeric -- name: Set default branch - uri: - url: "{{ gitea_url }}/{{ org }}/{{ repo }}/settings/branches" - validate_certs: false - user: root - password: "{{ gitea_root_password }}" - force_basic_auth: true - status_code: 302 - method: POST - body_format: form-urlencoded - body: - _csrf: "{{ gitea_token }}" - action: default_branch - branch: master