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

Ultralytics Actions JSON, CSS and autolabel support #27

Closed

Conversation

UltralyticsAssistant
Copy link
Member

@UltralyticsAssistant UltralyticsAssistant commented Aug 14, 2024

This pull request significantly enhances the Ultralytics Actions workflow, introducing support for JSON and CSS formatting, alongside intelligent issue and PR handling. This includes automatic labeling, spam detection, abuse identification, and off-topic filtering, all powered by OpenAI GPT-4o. These updates ensure a more efficient and organized workflow, adhering to the latest Ultralytics standards.

Key Enhancements:

  • Expanded Formatting Support: Ultralytics Actions now automatically formats JSON, CSS, Python, Markdown, and Swift files to maintain consistent code quality across projects.
  • Smart PR and Issue Handling: The workflow now includes intelligent auto-labeling for issues and pull requests, spam detection, and filtering of abusive or off-topic content, ensuring a cleaner and more focused repository environment.
  • Enhanced PR Summaries: PR summaries are now generated using GPT-4o, providing concise and informative overviews of changes to streamline the review process.

Actions Overview:

  • Six Default Actions: The workflow now runs six actions by default, including Python code formatting with Ruff, Markdown styling with Prettier, docstring formatting with docformatter, Swift code formatting with swift-format, spell-checking with codespell, and broken link detection with Lychee.
  • Customization: You can easily customize or disable individual actions by modifying the corresponding lines in the workflow file (e.g., remove the 'markdown: true' line to disable Markdown formatting).
  • Customization with pyproject.toml: Additional customizations can be applied using a pyproject.toml file, allowing you to tailor the action to your project’s specific needs.

Additional Updates:

  • Ultralytics Spelling Dictionary: New spellings have been added to the Ultralytics spelling dictionary to enhance accuracy.
  • Markdown Frontmatter: Frontmatter is now ignored by markdown formatters, as per user feedback.

For more details on how to use and customize this action, please visit the Ultralytics Actions GitHub repository.

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Updated the GitHub workflow for code formatting and issue/pr management.

📊 Key Changes

  • Trigger workflows on issue creation.
  • Extend PR triggers to include more events (opened, closed, synchronized, review_requested).
  • Updated the token usage to fall back on personal access token if available.
  • Added auto-labeling for issues and PRs.
  • Enhanced formatting to support YAML, JSON, and CSS.
  • Disabled broken link checking.

🎯 Purpose & Impact

  • Better Workflow Management: Improved triggers ensure that all relevant events are covered, providing a more comprehensive tracking of activities in the repository.
  • Enhanced Formatting: Supporting additional file types ensures consistent styling across different file formats.
  • Automatic Labeling: Streamlines issue and PR management by auto-labeling, saving time and providing better organization.
  • Flexible Token Handling: Ensures the workflow can continue to operate even if a personal access token is required by falling back on GitHub’s token.

@glenn-jocher glenn-jocher deleted the update-format-workflow-20240815020022 branch August 14, 2024 18:01
@github-actions github-actions bot added the enhancement New feature or request label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants