Skip to content

Реализация gitsync plugins help #332

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

ovcharenko-di
Copy link

реализация #331

@oscript-library/Collaborators - пожалуйста, проверьте изменения и прокомментируйте их

@nixel2007 nixel2007 requested review from Copilot and nixel2007 and removed request for Copilot June 7, 2025 20:58
@@ -3,7 +3,6 @@ name: Контроль качества
on:
push:
pull_request:
workflow_dispatch:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вроде должно работать. Если не работает, надо тогда в материнском воркфлоу поправить (но мне кажется, что я правил уже)

# Любой пуш и pr в проекте
on: [push, pull_request]

on:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кажется тоже можно на типовой воркфлоу из autumn-library перевести, да?

Copy link
Author

@ovcharenko-di ovcharenko-di Jun 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

для прохождения тестов нужна установленная платформа.

или это можно как-то совместить с воркфлоу от autumn-library?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Только если своего агента подсунуть. Доп экшены пока нельзя выполнять.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Либо нужно composite actions делать, но это прям сложнее.


Процедура ВывестиСправку(Плагин)

Сообщить(Плагин.Имя());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Специально через сообщить, а не через лог?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да, чтобы ИНФОРМАЦИЯ - не выводилось, оно тут лишнее

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Раскладку на лог выставить может быть? Не критично, просто хотелось бы аккуратности в ci, когда вывод логов в файл настроен

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a help command for gitsync plugins as part of issue #331. The key changes include:

  • Adding a new property "ОписаниеСправки" in the plugin class to retrieve help information.
  • Implementing command logic in КомандаPluginHelp.os to display help information for a specific or all plugins.
  • Updating GitHub workflows to use updated OneScript versions and actions.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/core/Классы/internal/Классы/ПлагинСинхронизации.os Introduces the "ОписаниеСправки" property to fetch help details from plugins.
src/cmd/Классы/КомандаPluginHelp.os Implements help command logic to conditionally display help for plugins based on user-provided arguments/options.
.github/workflows/testing.yml Updates workflow configuration for newer OneScript and checkout action versions.
.github/workflows/qa.yml Removes the manual trigger (workflow_dispatch) to streamline QA execution.
Comments suppressed due to low confidence (1)

src/core/Классы/internal/Классы/ПлагинСинхронизации.os:182

  • Consider adding a code comment explaining the purpose and usage of the new 'ОписаниеСправки' property to help future maintainers understand its role.
ОписаниеСправки = КлассПлагина.Справка();

Плагин = КлючЗначение.Значение;

Если НЕ ВывестиВсеПлагины Тогда
Если КлючЗначение.Ключ = ИмяПлагина Тогда
Copy link
Preview

Copilot AI Jun 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review the plugin name comparison here – if case insensitivity is required by design, consider using a case-insensitive comparison or adding a comment to indicate that this is intentional.

Suggested change
Если КлючЗначение.Ключ = ИмяПлагина Тогда
Если СтрРегистроНезависимоеСравнение(КлючЗначение.Ключ, ИмяПлагина) Тогда

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants