Skip to content

Commit c4c2a24

Browse files
committed
Save task ID in timewarrior instead of url
1 parent 926a587 commit c4c2a24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

commands/host/timew

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ branch_name=$(git rev-parse --abbrev-ref HEAD)
2020
# Extract the task ID using regex
2121
if [[ $branch_name =~ T-([0-9]+) ]]; then
2222
task_id="${BASH_REMATCH[1]}"
23-
result="https://${DOMAIN}/app/tasks/$task_id"
2423

2524
# Copy to clipboard based on OS
2625
if command -v timew &> /dev/null; then
2726
basename=$(basename "$PWD")
28-
timew tag $result $basename
27+
timew tag $task_id $basename
2928
else
3029
echo "timewarrior (timew) is not installed"
3130
fi

0 commit comments

Comments
 (0)