bump-sh / bump-sh/cli

Be able to `deploy` a git history of a given file

Open
#412 0 comments 0 reactions 0 assignees View on GitHub
cycle devops enhancement internal technical typescript
Dominant language
TypeScript
Stars
71
Forks
9
Avg merge
7m
Merged PRs (30d)
4

Description

## Context

Imagine you want to import the history of changes of a given API definition file to Bump.

The current “solution” is to use a manual script to deploy each revision one by one. Very rough-and-not-working oneliner bash script: `git log --pretty=format:%H my/definition/openapi.yml | xargs -I % git show '%:my/definition/openapi.yml`.

## Solution

We should allow the `bump deploy` command to deploy a git history of a given file. This would simplify our users' initial import work.

e.g. Deploy the `my/definition/openapi.yml` file to the `my-doc` documentation would be as simple as:

```
bump deploy --git-history --doc my doc my/definition/openapi.yml
```

We could also allow `--from` / `--to` options such as:
```
bump deploy --git-history --from c900e6 --to main --doc my doc my/definition/openapi.yml
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.