Page MenuHomeDevCentral

arc-logtask
ActivePublic

Authored by dereckson on Apr 5 2015, 03:53.
Referenced Files
F1591: arc-logtask
Apr 5 2015, 03:53
Subscribers
None
#!/bin/sh
ARC=arc
URL="http://devcentral.nasqueron.org"
PRIORITY=50
ARC_OPTIONS="--conduit-uri $URL/api"
arcTaskCreatedId=`$ARC todo $1 --project Servers --no-ansi $ARC_OPTIONS | gawk '{match($3,"T[0-9]+",a)}END{print a[0]}' | cut -d'T' -f 2`
$ARC close T$arcTaskCreatedId --status Resolved $ARC_OPTIONS > /dev/null
echo "{\"id\": $arcTaskCreatedId, \"priority\": $PRIORITY, \"viewPolicy\": \"public\"}" | $ARC call-conduit maniphest.update $ARC_OPTIONS > /dev/null
echo $URL/T$arcTaskCreatedId

Event Timeline

dereckson changed the title of this paste from untitled to arc-logtask.
dereckson updated the paste's language from autodetect to autodetect.
dereckson updated the paste's language from autodetect to bash.Apr 5 2015, 03:54
dereckson added a project: Servers.