From 94e8c652568b8c3f43931c814fa81021ebca4c2c Mon Sep 17 00:00:00 2001 From: dominik kuehne Date: Tue, 18 Jan 2022 14:44:20 +0100 Subject: [PATCH] New version is 1.0.1 --- README.md | 2 +- package.json | 2 +- src/api.json | 2 +- src/expath-pkg.xml | 2 +- src/modules/github.xql | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b61886a..cfdeae1 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Synchronizes your data collection with GitHub and GitLab. ## Current restrictions -In version 1.0.0 not implemented: +In version 1.0.1 not implemented: - webhooks are not fully implemented. ## Building and Installation diff --git a/package.json b/package.json index d5849d6..ce12095 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tuttle", - "version": "1.0.0", + "version": "1.0.1", "description": "tuttle - a Git-integration for eXist-db", "scripts": { "test": "gulp install && mocha --exit", diff --git a/src/api.json b/src/api.json index f7a8f4a..e283469 100644 --- a/src/api.json +++ b/src/api.json @@ -1,7 +1,7 @@ { "openapi": "3.0.0", "info": { - "version": "1.0.0", + "version": "1.0.1", "title": "Tuttle API", "description": "API for Tuttle Git integration" }, diff --git a/src/expath-pkg.xml b/src/expath-pkg.xml index ea457c1..706e300 100644 --- a/src/expath-pkg.xml +++ b/src/expath-pkg.xml @@ -2,7 +2,7 @@ + abbrev="tuttle" version="1.0.1" spec="1.0"> Tuttle - Git for eXist-db diff --git a/src/modules/github.xql b/src/modules/github.xql index 40ae39c..ed08e09 100644 --- a/src/modules/github.xql +++ b/src/modules/github.xql @@ -62,7 +62,7 @@ declare function github:clone($config as map(*), $collection as xs:string, $sha : Get the last commit :) declare function github:get-lastcommit-sha($config as map(*)) { - let $url := $config?baseurl || "/repos/" || $config?owner || "/" || $config?repo || "/commits/" || $config?ref + let $url := $config?baseurl || "/repos/" || $config?owner || "/" || $config?repo || "/commits?sha=" || $config?ref let $request := parse-json(util:base64-decode(github:request($url, $config?token)[2])) @@ -75,7 +75,7 @@ declare function github:get-lastcommit-sha($config as map(*)) { : Get all commits :) declare function github:get-commits($config as map(*)) { - let $url := $config?baseurl || "/repos/" || $config?owner || "/" || $config?repo || "/commits/" || $config?ref + let $url := $config?baseurl || "/repos/" || $config?owner || "/" || $config?repo || "/commits?sha=" || $config?ref let $request := parse-json(util:base64-decode(github:request($url, $config?token)[2])) @@ -88,7 +88,7 @@ declare function github:get-commits($config as map(*)) { : Get N commits :) declare function github:get-commits($config as map(*), $count as xs:int) { - let $url := $config?baseurl || "/repos/" || $config?owner || "/" || $config?repo || "/commits/" || $config?ref + let $url := $config?baseurl || "/repos/" || $config?owner || "/" || $config?repo || "/commits?sha=" || $config?ref let $request := parse-json(util:base64-decode(github:request($url, $config?token)[2])) let $count-checked := if ($count > array:size($request) ) then array:size($request) else $count @@ -102,7 +102,7 @@ declare function github:get-commits($config as map(*), $count as xs:int) { : Get all commits in full sha lenght :) declare function github:get-commits-fullsha($config as map(*)) { - let $url := $config?baseurl || "/repos/" || $config?owner || "/" || $config?repo || "/commits" + let $url := $config?baseurl || "/repos/" || $config?owner || "/" || $config?repo || "/commits?sha=" || $config?refss let $request := parse-json(util:base64-decode(github:request($url, $config?token)[2]))