{"id":13525994,"url":"https://github.com/Siphalor/giup","last_synced_at":"2025-04-01T06:30:53.512Z","repository":{"id":57434874,"uuid":"332271910","full_name":"Siphalor/giup","owner":"Siphalor","description":"Python script for automated, iterative git merges and publishing","archived":false,"fork":false,"pushed_at":"2023-12-01T16:23:06.000Z","size":78,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T01:41:18.734Z","etag":null,"topics":["git","git-merge","pypi","workflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Siphalor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-23T17:46:32.000Z","updated_at":"2023-05-13T01:03:05.000Z","dependencies_parsed_at":"2024-11-02T10:31:33.538Z","dependency_job_id":null,"html_url":"https://github.com/Siphalor/giup","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":0.06451612903225812,"last_synced_commit":"b2b0ee4136abded5279f68e2381832a78282d247"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siphalor%2Fgiup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siphalor%2Fgiup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siphalor%2Fgiup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siphalor%2Fgiup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siphalor","download_url":"https://codeload.github.com/Siphalor/giup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246596626,"owners_count":20802856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-merge","pypi","workflow"],"created_at":"2024-08-01T06:01:24.143Z","updated_at":"2025-04-01T06:30:53.243Z","avatar_url":"https://github.com/Siphalor.png","language":"Python","readme":"# GIUP - Git Interactive Update and Publish\n\n[![PyPI][pypi-image]][pypi-link]\n\n  [pypi-image]: https://img.shields.io/pypi/v/giup.svg\n  [pypi-link]: https://pypi.python.org/pypi/giup\n\nAllows to interactively perform hierarchical merges and run publishing commands in between.\n\nWhen commands fail the user is given the chance to intervene by rerunning the current command, just continuing, running a custom shell command or stopping the project, or the current merge path.\n\n## Example Workflow\nExample workflow from one of my Minecraft modding projects:\n\n`.giup:`\n```json\n{\n    \"merge-paths\": [\n        \"1.16\",\n        \"1.16-\u003e1.15-\u003e1.14\",\n        \"1.16-\u003e1.17\"\n    ],\n    \"commands\": [\n        {\n            \"title\": \"Cleanup build directories\",\n            \"run\": \"rm -rf build .gradle\",\n            \"nt\": \"rmdir /S /Q build \u0026 rmdir /S /Q .gradle\",\n            \"ignore-errors\": true\n        },\n        {\n            \"title\": \"Build and publish\",\n            \"run\": \"./gradlew publish\",\n            \"nt\": \"gradlew publish\"\n        },\n        \"git push\"\n    ]\n}\n```\n\nThis consecutively merges:\n\n1. `1.16` to `1.15`\n2. `1.15` to `1.14`\n3. `1.16` to `1.17`\n\nAfter each merge GIUP cleans up, builds, publishes and pushes the code.\n\n## Getting Started\nTo install this project run `pip install giup`. \n\nTo use this for your project create a `.giup` file (as described below) in your project root and run `giup`.\n\n## Project Specification\nBy default, the project specification will be read from the `.giup` file in the working directory. The specification should be defined in JSON and uses the following keys:\n\n### `merge-paths`\nHere you can specify certain merge hierarchies. You can either specify a hierarchy as a string delimited by arrows (`-\u003e`) or as an array with all branches (`[\"1.16\",\"1.15\",\"1.14\"]`).\n\nSpecifying a single branch will just switch to that branch and run the commands.\n\n### `commands`\nIn this array commands are specified.\nCommands are specified as an object or a string, which is a short form for an object with the `run` key.\n\nThe `run` entry should contain a string that will be run as a shell command. You can define overrides for Windows (`nt`) and POSIX (`posix`) shells.\n\nThe `title`entry is a string that optionally gets displayed when the command is run. If not defined, the command itself will be displayed before execution.\n\nThe `ignore-errors` entry is an optional boolean telling GIUP whether unsuccessful runs of the command should be treated as errors (on by default). This is useful e.g. when trying to delete a file with `rmdir` which might not exist.\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSiphalor%2Fgiup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSiphalor%2Fgiup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSiphalor%2Fgiup/lists"}