Changeset 117547 in spip-zone


Ignore:
Timestamp:
Aug 13, 2019, 5:58:55 PM (8 days ago)
Author:
cam.lafit
Message:

Ajouter le plugin à l'équipe contrib

  • Cela permet de donner les droits à tous les membres *contrib* de l'organisation
Location:
_outils_/importToGitea/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _outils_/importToGitea/trunk

    • Property subgit:lock:4b7c5a16b613a8f0f6060f26c145cdc5a024f899 deleted
    • Property subgit:lock:4f792dfc0f2d74bdae59e950ff61081632b8b04d set to 2019-08-13T19:59:28.678
  • _outils_/importToGitea/trunk/ImportOneRepository.sh

    r116294 r117547  
    108108ORGANIZATION_ID=$(curl -sH "Authorization: token $GITEA_TOKEN" \
    109109        "$GITEA_HOST:$GITEA_PORT/api/v1/orgs/$ORGANIZATION" | jq ".id")
     110TEAM_ID=$(curl -sH "Authorization: token $GITEA_TOKEN" \
     111        "$GITEA_HOST:$GITEA_PORT/api/v1/orgs/$ORGANIZATION/teams" |jq '.[] | select(.name == "contrib") | .id ')
    110112
    111113
     
    113115        --data "clone_addr=$repo_source&uid=$ORGANIZATION_ID&repo_name=$REPOSITORY" \
    114116        "$GITEA_HOST:$GITEA_PORT/api/v1/repos/migrate"
     117
     118curl -X PUT \
     119        -H "Authorization: token $GITEA_TOKEN" \
     120        "https://git.spip.net/api/v1/teams/$TEAM_ID/repos/$ORGANIZATION/$REPOSITORY"
    115121
    116122#Restore subgit configuration
Note: See TracChangeset for help on using the changeset viewer.