lp:~bowenfan/turnip

Owned by Bowen Fan
Get this repository:
git clone https://git.launchpad.net/~bowenfan/turnip
Only Bowen Fan can upload to this repository. If you are Bowen Fan please log in for upload directions.

Branches

Name Last Modified Last Commit
SN2052-add_ref_creation_endpoint_to_turnip_api 2023-10-19 10:45:34 UTC
Add ref creation POST endpoint to turnip-api

Author: Bowen Fan
Author Date: 2023-10-19 10:45:34 UTC

Add ref creation POST endpoint to turnip-api

A bulk endpoint is added at `/repo/{name}/refs`. The request payload should contain
a JSON array of dicts, e.g. [{"ref":"refs/tags/1234", "commit_sha1":<hash>}, ...].
The logic layer will use pygit2's `repo.create_reference` method to write the
requested ref names against the corresponding commits specified.

The response body indicates the refs that were successfully created and refs that
encountered errors. In case of logic layer failures (e.g. the commit cannot be found
in the repo), partial success is possible. In case of API layer failures (e.g. the
request body does not conform to what the API expects), the entire request will not
be processed and an API error will be returned.

Also includes corresponding unit tests for the new functions.

SN2052-add_ref_creation_to_turnip_api 2023-09-28 19:11:10 UTC
wip mostly done

Author: Bowen Fan
Author Date: 2023-09-28 19:11:10 UTC

wip mostly done

master 2023-09-28 11:07:07 UTC
pre-commit autoupdate

Author: Colin Watson
Author Date: 2023-09-28 11:07:07 UTC

pre-commit autoupdate

Merged from https://code.launchpad.net/~cjwatson/turnip/+git/turnip/+merge/452349

13 of 3 results
This repository contains Public information 
Everyone can see this information.

Subscribers