Skip to content

Conversation

@ArtiomDivak
Copy link
Collaborator

@ArtiomDivak ArtiomDivak commented Nov 12, 2025

Summary by Sourcery

Add a new GitHub Actions workflow to run Sourcery code reviews on pull requests.

CI:

  • Introduce .github/workflows/sourcery.yml to trigger Sourcery reviews on pull request events
  • Set up Python 3.11, install Sourcery, and run reviews against the tools directory

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Nov 12, 2025

Reviewer's Guide

Introduces a new GitHub Actions workflow to run Sourcery code reviews on pull requests by checking out the code, setting up Python 3.11, installing Sourcery via pip, and executing a review on the 'tools' directory.

File-Level Changes

Change Details Files
Add Sourcery CI workflow configuration
  • Create .github/workflows/sourcery.yml
  • Define name and pull_request triggers
.github/workflows/sourcery.yml
Configure CI environment
  • Checkout code with actions/checkout@v4
  • Set up Python 3.11 via actions/setup-python@v5
.github/workflows/sourcery.yml
Install and run Sourcery review
  • Upgrade pip and install sourcery package
  • Execute 'sourcery review tools'
.github/workflows/sourcery.yml

Possibly linked issues


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. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the 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 exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

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

@ArtiomDivak ArtiomDivak force-pushed the sourcery branch 2 times, most recently from afbc7c9 to 99a8707 Compare November 12, 2025 11:42
Signed-off-by: Artiom Divak <[email protected]>
@ArtiomDivak
Copy link
Collaborator Author

@sourcery-ai review

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Yarboa
Copy link
Collaborator

Yarboa commented Nov 13, 2025

Please take a look here

https://github.com/containers/qm/actions/runs/19296341436/job/55179130811?pr=948

There are output and ideas to fix
how comes review is passing?


- name: Run Sourcery review
run: |
sourcery review tools No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to scan only tools? directory

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