An open API service indexing awesome lists of open source software.

https://github.com/fel88/gandalf


https://github.com/fel88/gandalf

github-cli roslyn telegram-bot

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# Gandalf

Modify, build and create pull requests for your C# projects with Telegram Bot.

git-bash / github cli / cmd

QR code parser

Roslyn based parsing

![image](https://user-images.githubusercontent.com/15663687/222923525-5848ce89-60a9-4404-91b3-5383e259448c.png)

For Linux:
```
bash git
bash gh
bash
```

Commands:
```
ls # show files/directories list
cd # change directory
cd..
build # build current directory solution with msbuild
git
gh
cmd
imgcat # get image
enter # enter file mode
exit # exit file mode
```

directory mode:
```
cat # display text file
patch \n # rewrite file
parse # get list of functions
```
file mode:
```
func [-nolines] # display specific function
cat
cat # display lines of file
patch \n # replace specific function code
parse # show functions list
parse # show functions list
insert \n #insert line
delete \n # delete line
replace \n # replace line
```

How to apply git patch remotely:
```
Host machine:
1. git add -A
2. git diff --staged -w > changes.patch
3. Zip changes.patch to archive
4. Open QR split (https://github.com/fel88/QRSplit) and make QR code
5. Photo QR code and send to gandalf telegram bot

Telegram bot:
6. Unzip file (bash 7z x )
7. apply changes to target repository: bash git apply --reject --ignore-space-change --ignore-whitespace changes.patch
8. remove changes.zip and changes.patch (bash rm changes.*)
9. bash git add .
10. bash git commit -m ''
11. bash git push
12. bash gh pr create --title '' --body ''
13. merge PR with main account
14. sync repo: bash gh repo sync /
15. bash git pull
```