direct extract or wikiurl from curl
This commit is contained in:
parent
d05be5fa35
commit
240928b74b
@ -165,13 +165,13 @@ if [[ "$SOURCEORG" == "smecontribs" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# grab WIKILINK from source package
|
# grab WIKILINK from source package
|
||||||
RESPONSE=$(curl "$SILENT" -X 'GET' \
|
WIKILINK=$(curl -X 'GET' \
|
||||||
"https://src.koozali.org/api/v1/repos/$SOURCEORG/$SOURCEPKG" \
|
"https://src.koozali.org/api/v1/repos/$SOURCEORG/$SOURCEPKG" \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-H "Authorization: token $SOURCEACCESSTOKEN" \
|
-H "Authorization: token $SOURCEACCESSTOKEN" \
|
||||||
)
|
| jq ' .external_wiki.external_wiki_url')
|
||||||
WIKILINK=$(echo $RESPONSE | jq ' .external_wiki.external_wiki_url')
|
if [ $DEBUG ] ; then echo "WIKILINK=$WIKILINK" ; fi
|
||||||
|
|
||||||
# Update the repo with the changed description, bugzilla url and wiki url
|
# Update the repo with the changed description, bugzilla url and wiki url
|
||||||
if [ $DEBUG ] ; then echo "Updating Description, Bug and Wiki links" ; fi
|
if [ $DEBUG ] ; then echo "Updating Description, Bug and Wiki links" ; fi
|
||||||
@ -190,7 +190,7 @@ RESPONSE=$(curl "$SILENT" "$checkSSL" -X 'PATCH' \
|
|||||||
},
|
},
|
||||||
"has_wiki": true,
|
"has_wiki": true,
|
||||||
"external_wiki": {
|
"external_wiki": {
|
||||||
"external_wiki_url": "'"$WIKILINK"'"
|
"external_wiki_url": "'$WIKILINK'"
|
||||||
}
|
}
|
||||||
}'
|
}'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user