-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changelog Validation & Merge Upstream Workflow #992
Conversation
Reviewer's Guide by SourceryThis pull request implements a workflow to automatically merge upstream changes into the project. It includes changelog validation and translation, ensuring that all merged changes are properly documented and localized. The workflow uses GitHub Actions to automate the merge process and integrates with the OpenAI API for changelog translation. Sequence diagram for the merge upstream workflowsequenceDiagram
participant GH as GitHub Action
participant Git as Git Repository
participant API as GitHub API
participant AI as OpenAI API
GH->>Git: Clone repository
GH->>Git: Set up upstream remote
GH->>Git: Fetch upstream changes
GH->>Git: Create/update merge branch
GH->>Git: Detect new commits
loop For each commit
GH->>API: Fetch PR details
GH->>GH: Process PR changelog
end
opt Translation enabled
GH->>AI: Translate changelog entries
AI-->>GH: Return translations
end
GH->>API: Create merge PR
API-->>GH: Return PR details
Flow diagram for changelog validation processflowchart TD
A[Start] --> B{Check PR Labels}
B -->|Has CL_NOT_NEEDED| C[Skip Validation]
B -->|No Skip Label| D{Parse Changelog}
D -->|Success| E[Validate Changes]
D -->|Failure| F[Mark Invalid]
E -->|Valid| G[Add Valid Label]
E -->|Invalid| F
F --> H[Remove Valid Label]
G --> I[Remove Invalid Label]
C --> J[End]
H --> J
I --> J
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Сохранение в файл - кринж лютый, который либо срет оч большим числом коммитов, либо создает конфликты, на выбор. Способ с бд куда удобнее в этом плане. |
Что этот PR делает
Портирует с пары валидацию чейнджлога и мерге апстрим.
Предложения по эмодзи и контексту перевода приветствуются.
В боте думаю оставить только отправку в дис без сохранения в БД. ТГ чейнджлог в файле скорее всего может быть использован для игры.
rscadd="✨"
bugfix="🩹"
rscdel="🗑️"
qol="🌿"
sound="🎶"
image="🖼️"
map="🗺️"
spellcheck="📝"
balance="⚖️"
code_imp="🔨"
refactor="🛠️"
config="⚙️"
admin="🪄"
server="🛡️"
Тестирование
Тестовый мерге:
m-dzianishchyts#6
Актион:
https://github.com/m-dzianishchyts/BandaStation/actions/runs/12772336604/job/35601875054
Публикация в дисе:
https://discord.com/channels/1097181193939730453/1097880873992454164/1328770007169237122
Summary by Sourcery
Update the changelog validation process and implement a workflow for merging upstream changes.
New Features:
Enhancements:
Build:
CI: