Changeset 111072 in spip-zone


Ignore:
Timestamp:
Jul 10, 2018, 7:12:30 AM (5 months ago)
Author:
cam.lafit@…
Message:

Affecter les membres à la bonne équipe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _outils_/svn2git/trunk/create_user_gitea.sh

    r111071 r111072  
    1313    $GITEA_HOST/api/v1/orgs/$GITEA_ORGA \
    1414    | jq -r ".id"
     15)
     16
     17GITEA_ORGA_TEAM_ID=$(curl\
     18    --silent \
     19    -X GET \
     20    -H "Authorization: token $GITEA_TOKEN" \
     21    $GITEA_HOST/api/v1/orgs/$GITEA_ORGA/teams \
     22    | jq '.[] | select(.permission == "write") | .id'
    1523)
    1624
     
    4856    curl -H "Authorization: token $GITEA_TOKEN" \
    4957            -X PUT \
    50             $GITEA_HOST/api/v1/teams/$GITEA_ORGA_ID/members/$username
     58            $GITEA_HOST/api/v1/teams/$GITEA_ORGA_TEAM_ID/members/$username
    5159
    5260done <$SVN_USERS_FILE
Note: See TracChangeset for help on using the changeset viewer.