add: push changes to gitea server after merging local changes

This implementation has no configuration yet to authorize accordingly.
WIP for #3 and #4.
This commit is contained in:
2023-10-24 22:17:37 +02:00
parent d2aeb7ffe4
commit 0cb4190540
6 changed files with 217 additions and 43 deletions

View File

@@ -29,6 +29,12 @@ func main() {
os.Exit(-1)
}
fmt.Printf("Push changes to %s\n", repository.Full_name)
if err = project.Push(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(-1)
}
// NOTE: this can be used to add / modify tasks
// var update_tasks []taskwarrior.Task
// task := taskwarrior.NewTask(