deep-foundation / deep-foundation/scripts

Automate branch fix using creation of new branch instead of `force push` or `rebase` or `revert of merge`

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Shell
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

First step is to create a script:

```
git checkout clientifrst
git log
git checkout 243604a355a09cbf91cbb96fe782d87270e712d1
git checkout -b client-first
git push -u origin client-first

git checkout client-first
git merge main
```

Where `clientifrst` is the name of broken branch and `client-first` is the name of fixed branch.

Second step is to automate it as a GitHub App/Bot.

So it will be possible to do it without leaving the GitHub.

Example:

![IMG_1538](https://github.com/deep-foundation/scripts/assets/1431904/2996c179-cf88-4014-ad0c-527efeb2044d)

Broken pull request: https://github.com/deep-foundation/deepcase/pull/17
Repaired pull request: https://github.com/deep-foundation/deepcase/pull/19

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.