Skip to content

Commit 2634f06

Browse files
committed
feat: add git synchronization scripts and update contributing documentation
- Introduced new scripts for managing git synchronization: `git-check-sync.sh`, `git-force-sync-backup.sh`, `git-push-all.sh`, and `git-sync-from-origin.sh` to streamline backup and origin synchronization processes. - Updated `.gitconfig-aliases` with new git aliases for pushing and syncing branches. - Revised `CONTRIBUTING.md` to reflect updated links and improve clarity on contribution processes. - Removed obsolete files: `OPENSOURCE-CHECKLIST.md`, `RELEASE-AUTOMATION-SUMMARY.md`, `STASH-SYSTEM.md`, and `TESTING.md` to declutter the repository. - Enhanced documentation for better guidance on using the new features.
1 parent a3c81d5 commit 2634f06

19 files changed

Lines changed: 200 additions & 2003 deletions

.gitconfig-aliases

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[alias]
2+
push-all = "!f() { \
3+
branch=${1:-$(git branch --show-current)}; \
4+
echo '🔄 Git RAID Push - Sincronizando origin + backup'; \
5+
echo '📍 Branch: '$branch; \
6+
echo ''; \
7+
echo '1️⃣ Pushing to origin...'; \
8+
git push origin \"$branch\" && echo '✅ origin: Push successful' || { echo '❌ origin: Push failed'; exit 1; }; \
9+
echo ''; \
10+
echo '2️⃣ Pushing to backup...'; \
11+
git push backup \"$branch\" && echo '✅ backup: Push successful' || { echo '⚠️ backup: Push failed (origin já foi atualizado)'; exit 1; }; \
12+
echo ''; \
13+
echo '🎉 Sincronização completa!'; \
14+
echo ' origin: OnoSendae/vibes-ecosystem'; \
15+
echo ' backup: OnoSendae/vibe-devtools-bkp'; \
16+
}; f"
17+
18+
sync-backup = "!f() { \
19+
branch=${1:-$(git branch --show-current)}; \
20+
echo '🔄 Sincronizando backup com PRs/merges remotos'; \
21+
echo '📍 Branch: '$branch; \
22+
echo ''; \
23+
echo '1️⃣ Pulling from origin...'; \
24+
git pull origin \"$branch\" && echo '✅ Pull from origin successful' || { echo '❌ Pull from origin failed'; exit 1; }; \
25+
echo ''; \
26+
echo '2️⃣ Pushing to backup...'; \
27+
git push backup \"$branch\" && echo '✅ backup atualizado com mudanças de origin' || { echo '❌ backup: Push failed'; exit 1; }; \
28+
echo ''; \
29+
echo '🎉 Backup sincronizado com origin!'; \
30+
echo ' Mudanças remotas (PRs) agora estão no backup'; \
31+
}; f"
32+

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
build:
11+
if: github.repository == 'OnoSendae/vibe-devtools'
1112
runs-on: ubuntu-latest
1213

1314
steps:

.github/workflows/publish-cli.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
publish-cli:
11+
if: github.repository == 'OnoSendae/vibe-devtools'
1112
runs-on: ubuntu-latest
1213
permissions:
1314
contents: read

.github/workflows/publish-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020

2121
jobs:
2222
publish-basic:
23-
if: github.event.inputs.package == 'basic' || github.event.inputs.package == 'all' || startsWith(github.ref, 'refs/tags/packages/basic/')
23+
if: (github.event.inputs.package == 'basic' || github.event.inputs.package == 'all' || startsWith(github.ref, 'refs/tags/packages/basic/')) && github.repository == 'OnoSendae/vibe-devtools'
2424
runs-on: ubuntu-latest
2525
permissions:
2626
contents: read
@@ -44,7 +44,7 @@ jobs:
4444
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4545

4646
publish-research:
47-
if: github.event.inputs.package == 'research' || github.event.inputs.package == 'all' || startsWith(github.ref, 'refs/tags/packages/research/')
47+
if: (github.event.inputs.package == 'research' || github.event.inputs.package == 'all' || startsWith(github.ref, 'refs/tags/packages/research/')) && github.repository == 'OnoSendae/vibe-devtools'
4848
runs-on: ubuntu-latest
4949
permissions:
5050
contents: read

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020

2121
jobs:
2222
publish:
23+
if: github.repository == 'OnoSendae/vibe-devtools'
2324
runs-on: ubuntu-latest
2425
permissions:
2526
contents: read

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414

1515
jobs:
1616
release:
17+
if: github.repository == 'OnoSendae/vibe-devtools'
1718
name: Release
1819
runs-on: ubuntu-latest
1920
steps:

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
test-cli:
11+
if: github.repository == 'OnoSendae/vibe-devtools'
1112
runs-on: ubuntu-latest
1213

1314
steps:
@@ -38,6 +39,7 @@ jobs:
3839
node dist/index.js --help
3940
4041
test-packages:
42+
if: github.repository == 'OnoSendae/vibe-devtools'
4143
runs-on: ubuntu-latest
4244
strategy:
4345
matrix:

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ Existem várias formas de contribuir:
3636

3737
### 1. Reportar Bugs 🐛
3838

39-
Encontrou um bug? [Abra um issue](https://github.com/onosendae/vibe-devtools/issues/new?template=bug_report.md).
39+
Encontrou um bug? [Abra um issue](https://github.com/OnoSendae/vibe-devtools/issues/new?template=bug_report.md).
4040

4141
### 2. Sugerir Features ✨
4242

43-
Tem uma ideia? [Abra uma discussion](https://github.com/onosendae/vibe-devtools/discussions) ou [crie um feature request](https://github.com/onosendae/vibe-devtools/issues/new?template=feature_request.md).
43+
Tem uma ideia? [Abra uma discussion](https://github.com/OnoSendae/vibe-devtools/discussions) ou [crie um feature request](https://github.com/OnoSendae/vibe-devtools/issues/new?template=feature_request.md).
4444

4545
### 3. Melhorar Documentação 📚
4646

@@ -60,13 +60,13 @@ A maior contribuição: **crie e compartilhe vibes customizados**!
6060

6161
### Antes de Reportar
6262

63-
- Verifique a [lista de issues](https://github.com/onosendae/vibe-devtools/issues) para ver se já foi reportado
63+
- Verifique a [lista de issues](https://github.com/OnoSendae/vibe-devtools/issues) para ver se já foi reportado
6464
- Tente reproduzir com a versão mais recente
6565
- Colete informações de debug (versões, logs, screenshots)
6666

6767
### Como Reportar
6868

69-
Use o [template de bug report](https://github.com/onosendae/vibe-devtools/issues/new?template=bug_report.md).
69+
Use o [template de bug report](https://github.com/OnoSendae/vibe-devtools/issues/new?template=bug_report.md).
7070

7171
**Informações essenciais**:
7272
- Versão da CLI (`vdt --version`)
@@ -112,7 +112,7 @@ Error: EACCES: permission denied, mkdir '~/.vibes'
112112

113113
### Como Sugerir
114114

115-
Use o [template de feature request](https://github.com/onosendae/vibe-devtools/issues/new?template=feature_request.md).
115+
Use o [template de feature request](https://github.com/OnoSendae/vibe-devtools/issues/new?template=feature_request.md).
116116

117117
**Estrutura boa**:
118118
```markdown

0 commit comments

Comments
 (0)