Skip to content
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 Generation | BandaStation #1012

Merged
merged 5 commits into from
Jan 18, 2025

Conversation

m-dzianishchyts
Copy link

@m-dzianishchyts m-dzianishchyts commented Jan 17, 2025

Что этот PR делает

Изменяет пути к чейнджлогам в системе ТГ. Кастомизирует окно чейнджлога.

По результатам бурного обсуждения в дисе стало ясно, что у системы чейнджлога есть 2 основные проблемы:

  1. Изменение чейнджлога в индексированном архивном файле может приводить к конфликтам при мерже апстрима.
  2. Изменение чейнджлога происходит с созданием дополнительного коммита.

Проблема 1 решается этим ПРом, поскольку чейнджлог лежит в поддиректории.
Проблема 2 может решиться наличием отдельной ветки и ленивыми HTTP запросами, но она мне не кажется существенной, особенно с учетом того, что коммиты ТГ уже переносятся в наш мастер как-есть и чейнджлог коммиты все равно останутся.

Тестирование

m-dzianishchyts@b15f7eb
m-dzianishchyts@9b6bb0b

Картинко

image

Summary by Sourcery

Update changelog paths and customize the changelog window.

New Features:

  • Add a new changelog interface for BandaStation.

Build:

  • Update changelog compilation path.

CI:

  • Update CI workflows to use the new changelog path and always run the changelog generation job when a PR is merged.

@m-dzianishchyts m-dzianishchyts added the 📜 CL не требуется Эти изменения не влияют на игровой процесс или игроки по какой-то причине не должны о них знать label Jan 17, 2025
Copy link

sourcery-ai bot commented Jan 17, 2025

Reviewer's Guide by Sourcery

This pull request modifies the changelog system to store changelogs in a subdirectory, and customizes the changelog window.

Class diagram for the changelog system changes

classDiagram
    class ChangelogBandaStation {
        -data: string
        -selectedDate: string
        -selectedIndex: number
        -dateChoices: array
        +constructor()
        +setData(data)
        +setSelectedDate(date)
        +setSelectedIndex(index)
        +getData(date, attemptNumber)
        +componentDidMount()
        +render()
    }

    class changelog {
        +ui_interact(user, ui)
        +ui_static_data()
    }

    class changelog_item {
        +New(date)
        -item_filename: string
    }

    changelog --> ChangelogBandaStation: uses
    changelog_item --> ChangelogBandaStation: provides data
Loading

File-Level Changes

Change Details Files
Move changelog files to a subdirectory.
  • Modified the github workflow to compile changelogs to the new subdirectory.
  • Modified the check changelogs script to point to the new subdirectory.
  • Modified the make changelog script to point to the new subdirectory.
  • Modified the auto changelog script to point to the new subdirectory.
  • Modified the changelog item to point to the new subdirectory.
.github/workflows/compile_changelogs.yml
tools/ci/check_changelogs.sh
tools/makeChangelog.bat
tools/pull_request_hooks/autoChangelog.js
modular_bandastation/changelog/code/changelog_item.dm
Customize the changelog window.
  • Added a new React component for the BandaStation changelog window.
  • Added a new UI interaction for the changelog.
  • Added a new modpack for the changelog.
tgui/packages/tgui/interfaces/ChangelogBandaStation.jsx
modular_bandastation/changelog/code/changelog.dm
modular_bandastation/changelog/_changelog.dm
Remove unused file.
  • Removed the unused file.
modular_bandastation/modular_bandastation.dme
Modified the auto changelog workflow to run on all merged pull requests.
  • Removed the condition that the pull request must not be a merge from upstream.
.github/workflows/auto_changelog.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions github-actions bot added TGUI Добавление или изменение существующего интерфейса на базе фреймворка TGUI 🎸 Инструменты Мы выдаем себя за реальное сообщество разработчиков. :shipit: Улучшение Мы сделали что-то немного лучше, на наш взгляд. labels Jan 17, 2025
modular_bandastation/changelog/code/changelog.dm Outdated Show resolved Hide resolved
modular_bandastation/changelog/code/changelog.dm Outdated Show resolved Hide resolved
Co-authored-by: Gaxeer <44334376+Gaxeer@users.noreply.github.com>
@Gaxeer Gaxeer merged commit 62c8820 into ss220club:master Jan 18, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎸 Инструменты Мы выдаем себя за реальное сообщество разработчиков. 📜 CL не требуется Эти изменения не влияют на игровой процесс или игроки по какой-то причине не должны о них знать :shipit: Улучшение Мы сделали что-то немного лучше, на наш взгляд. TGUI Добавление или изменение существующего интерфейса на базе фреймворка TGUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants