Browse Source

Par défaut pas de wiki , pas de ticket

* La forge git pour le moment ne gére que du code
* Le reste est sur contrib.spip.net ou/et core.spip.net
master
cam.lafit 3 years ago
parent
commit
26c8b1070e
  1. 8
      ImportToGitea.sh

8
ImportToGitea.sh

@ -26,6 +26,14 @@ do
--data "clone_addr=$repo_source&uid=$GITEA_ORGA_ID&repo_name=$repo_name" \
"$GITEA_HOST:$GITEA_PORT/api/v1/repos/migrate"
## Disable Wiki and Issue
curl -X PATCH \
-H "Authorization: token $GITEA_TOKEN" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
--data "{ \"has_issues\": false, \"has_wiki\": false}" \
"$GITEA_HOST:$GITEA_PORT/api/v1/repos/$GITEA_ORGA/$repo_name"
if [ ! -d "$repo_target" ]; then
echo "Target git is not set "
exit 1;

Loading…
Cancel
Save