Skip to content

Commit

Permalink
New version is 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik kuehne committed Jan 18, 2022
1 parent 0bb4d3d commit 94e8c65
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/api.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion src/expath-pkg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package
xmlns="http://expath.org/ns/pkg"
name="http://e-editiones.org/tuttle"
abbrev="tuttle" version="1.0.0" spec="1.0">
abbrev="tuttle" version="1.0.1" spec="1.0">
<title>Tuttle - Git for eXist-db</title>
<dependency processor="http://exist-db.org" semver-min="5.0.0"/>
<dependency package="http://e-editiones.org/roaster" semver-min="1.0.0"/>
Expand Down
8 changes: 4 additions & 4 deletions src/modules/github.xql
Original file line number Diff line number Diff line change
Expand Up @@ -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]))

Expand All @@ -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]))

Expand All @@ -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
Expand All @@ -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]))

Expand Down

0 comments on commit 94e8c65

Please sign in to comment.