Skip to content

refactor style check scripts #4270

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

Merged
merged 2 commits into from
Apr 28, 2025
Merged

refactor style check scripts #4270

merged 2 commits into from
Apr 28, 2025

Conversation

manolo
Copy link
Member

@manolo manolo commented Apr 28, 2025

No description provided.

Copy link

AI Language Review

Upon reviewing the differences between the two versions of the file, I've noticed the following areas that need improvement:

  1. Spelling/Typographic Errors:

    • In the section titled "Somethhng else," there is a typographic error in "Somethhng." It should be corrected to "Something."
  2. Tone and Language:

    • The line "try to be rude when weriting docs" is not appropriate for professional documentation. This needs to be rephrased to align with the friendly and professional tone expected in documentation. It should be reworded to something more constructive, or the sentence should be removed if it does not contribute to the document's purpose.

These areas require attention to ensure the documentation maintains a professional and respectful tone. The rest of the document seems to follow the established guidelines and presents instructions clearly.

@manolo manolo merged commit 7a566df into AI-PR Apr 28, 2025
4 checks passed
@manolo manolo deleted the AI-PR-REFACTOR branch April 28, 2025 06:02
manolo added a commit that referenced this pull request Apr 28, 2025
* Initial scripting for rating the quality of a PR change to the docs via AI

* First draft of the PR workflow; changes to the scripts to reflect Github environment

* Added sparse checkout

* Making the scripts executable and updating the workflow

* Set executable flags. Updated all scripts to /bin/bash

* Fixed paths in scripts and changed from choco to apt

* Added repo parameter to workflow and updated the scripts to work with that - making them more universal

* use setup-gh for installing gh, setup correctly env from secrets, use GITHUB_OUTPUT in the action, run gh if success (#4260)

* use setup-gh for installing gh, setup correctly env from secrets, use GITHUB_OUTPUT in the action, run gh if success

* use stderr

* use echo -e

* ignore files not ending in .java .tsx .adoc

* Consider only files ending in .tsx .java and .adoc

* find comment if exist

* modify an adoc

* use proper if blocks

* typo in var name

* change comment title

* increase peter-evans action version

* change action name

* remove changes in adoc

* refactor style check scripts (#4270)

* move scripts to its own folder, and remove score

* Adding changes to an adoc

* remove changes in adoc

* add headers to scripts

* better structure of prompts (#4272)

* better structure for prompts

* improve even more and simplify prompts

* Remove comment if no issues

* ai should return empty string if no suggestions

* small doc change

* stress not to comment anything that is not modified

* Revert "small doc change"

This reverts commit 52ca11f.

* Update scripts/style-check/user-prompt.txt

Co-authored-by: Luciano Vernaschi <[email protected]>

---------

Co-authored-by: Luciano Vernaschi <[email protected]>

* Update .github/workflows/style.yml

Co-authored-by: Zhe Sun <[email protected]>

---------

Co-authored-by: edler-san <[email protected]>
Co-authored-by: Luciano Vernaschi <[email protected]>
Co-authored-by: Zhe Sun <[email protected]>
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.

1 participant