Commit Graph

38 Commits

Author SHA1 Message Date
tastytea 6fcb349e90
Add config variable: forge_repo_data_branch. 2021-01-09 14:34:39 +01:00
tastytea f23a562c1b
Allow more than 1 screenshot.
continuous-integration/drone/push Build is failing Details
* New screenshot naming: branchname-N.extension (the “-N” ist new).
* In JSON file: Array of strings instead of string, “screenshots”
  instead of “screenshot”.
* Old format is still supported.
2020-11-15 20:30:42 +01:00
tastytea a97ba99814
Fix error with fmt 4.
continuous-integration/drone/push Build is passing Details
2020-10-28 11:40:11 +01:00
tastytea c904108f4d
Use fmt::format for string formatting where it improves clarity.
continuous-integration/drone/push Build is failing Details
2020-10-28 11:01:08 +01:00
tastytea 093de01e78
Make git forge and repos exchangeable.
continuous-integration/drone/push Build is passing Details
We are still tied to Gitea because we use their API.
The string concatenation looks ugly, I think I'll change it later.
2020-10-27 17:50:14 +01:00
tastytea 43a29bfdba
Fix update_cached_repo(), set HEAD to origin/main.
continuous-integration/drone/push Build is failing Details
2020-10-15 05:52:51 +02:00
tastytea 3c898e1c1b
Add compatibility aliases.
continuous-integration/drone/push Build is passing Details
2020-10-14 04:17:46 +02:00
tastytea 8f5e9ec7e0
Add timeout parameter to update_cached_repo(). 2020-10-14 03:38:25 +02:00
tastytea 6cf543a7b4
update_cached_repo(): Actually update. 2020-10-14 03:17:21 +02:00
tastytea eebef0aca7
update_cached_repo(): acquire credentials, init opts with functions. 2020-10-14 03:06:18 +02:00
tastytea b8eb56d50b
Fix passing of checkout options in update_cached_repo().
continuous-integration/drone/push Build is passing Details
2020-10-14 02:37:59 +02:00
tastytea 2502081574
Throw if lockfile can't be created for 20 seconds.
Also make create_lockfile() boolean.
2020-10-14 02:35:38 +02:00
tastytea 4a88652435
Add update_cached_repo().
Create lockfile, pull or clone.
2020-10-14 02:12:56 +02:00
tastytea 2c58894c92
Fix git::init() and git::cleanup().
init() always used a temporary directory and cleanup() only attempted to
remove it when cache = true.
2020-10-14 02:10:17 +02:00
tastytea c3020b782d
Set, create and remove repo directory in git::init() and shutdown(). 2020-10-14 00:31:09 +02:00
tastytea d01c88e42a
Pass cache in lambda in clone() by value. 2020-10-13 23:11:26 +02:00
tastytea db18edd478
Add option to use cache dir to clone().
Preparation for caching the repository.
2020-10-13 19:25:55 +02:00
tastytea dcf8053f2e
Fix warnings.
- Initialize variables and pointers.
- Enable automatic move in files::get_datadir().
- Remove unused using declarations and includes.
2020-07-05 05:53:26 +02:00
tastytea 96b8967f24
Move types to types.hpp. 2020-07-02 08:08:56 +02:00
tastytea f522c9ae45
Clean up everything.
continuous-integration/drone/push Build is passing Details
* More efficient.
* More readable.
* Errors are reported to the user.
2020-07-02 03:20:27 +02:00
tastytea b1224b82b5
Use PR numbers instead of branch names to determine IDs. 2020-07-02 01:17:08 +02:00
tastytea 9d043bec3f
Made git branch iteration more compact. 2020-07-01 22:10:58 +02:00
tastytea 9025e77cb2
Add more namespaces for clearer code.
continuous-integration/drone/push Build is passing Details
2020-07-01 20:51:35 +02:00
tastytea 0d1c1aeed9
Add correct file extension to screenshot. 2020-07-01 11:59:02 +02:00
tastytea 539c706459
Compatibility for libgit2 < 0.99.
continuous-integration/drone/push Build is passing Details
2020-07-01 11:41:52 +02:00
tastytea f371f1bd3d
git: Read SSH key from data dir.
continuous-integration/drone/push Build is failing Details
2020-07-01 11:05:11 +02:00
tastytea da01142052
typo. 2020-07-01 10:48:12 +02:00
tastytea 90545b0681
git: Add push().
continuous-integration/drone/push Build is failing Details
2020-07-01 10:24:38 +02:00
tastytea df60f738f4
git: Update repository HEAD in create_branch(). 2020-07-01 10:24:26 +02:00
tastytea ca61c1e391
Clone via SSH. 2020-07-01 10:23:35 +02:00
tastytea 8af8115e24
Update branch prefix. 2020-07-01 10:17:32 +02:00
tastytea 62ebbdbf0d
Compatibility with libgit2 < 0.28.
continuous-integration/drone/push Build is passing Details
2020-07-01 09:22:36 +02:00
tastytea 74e1471e49
Rename git functions, error checking with fewer steps.
continuous-integration/drone/push Build is failing Details
2020-07-01 08:56:20 +02:00
tastytea 542d1a865c
Add git namespace. 2020-07-01 08:50:16 +02:00
tastytea 46921a6e95
Add make_commit(). 2020-07-01 08:48:36 +02:00
tastytea bf3a718986
A bit of cleanup. 2020-07-01 08:48:26 +02:00
tastytea afd1e058ed
add make_new_branch(). 2020-07-01 04:38:08 +02:00
tastytea c219aa80a5
git clone + brittle ID calculation.
continuous-integration/drone/push Build is failing Details
2020-07-01 03:51:00 +02:00