Skip to content

Add guide for automating code review with OpenCode and Inference Providers - #2023

Merged
davanstrien merged 7 commits into
mainfrom
open-code-github-actions-inference-providers-guide
Nov 4, 2025
Merged

Add guide for automating code review with OpenCode and Inference Providers#2023
davanstrien merged 7 commits into
mainfrom
open-code-github-actions-inference-providers-guide

Conversation

@davanstrien

@davanstrien davanstrien commented Oct 29, 2025

Copy link
Copy Markdown
Member

cc @hanouticelina @Wauplin

Adds a guide on using OpenCode to set up GitHub actions using IP to run the models under the hood.

Toy PR example here: davanstrien/datasets#2 (note I've killed this token now so it won't work if you try it not but I can add you to a private repo if you want to test!

Still to do:

  • upload images to hub docs
  • Update image links
  • Maybe make a video/gif

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Wauplin Wauplin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Really great guide! Remember to upload the images to https://huggingface.co/datasets/huggingface/documentation-images + link them in the guide (+1 if you have light and dark mode images but not required).

Comment thread docs/inference-providers/guides/github-actions-code-review.md Outdated
Comment thread docs/inference-providers/guides/github-actions-code-review.md Outdated
Comment thread docs/inference-providers/guides/github-actions-code-review.md Outdated
@@ -0,0 +1,182 @@
# Automating Code Review with GitHub Actions

[OpenCode](https://opencode.ai) is an AI coding agent that runs in your terminal and can work with open models via Hugging Face Inference Providers.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it'd be cool to showcase how to use opencode locally in your terminal as well. I like the fact that the main topic of the guide is about GitHub Actions but I do think a first "local opencode" example would be great.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For this maybe it would be good to create a separate guide for open code more generally which then links to this + shows some terminal examples? Can do that in a follow up PR?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes sure! So having a "automating code review guide" under the "guides" section + "OpenCode" page under the new "integrations" section we discussed lately?

Comment thread docs/inference-providers/guides/github-actions-code-review.md

@pcuenca pcuenca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very cool!

Comment thread docs/inference-providers/guides/github-actions-code-review.md Outdated
Comment thread docs/inference-providers/guides/github-actions-code-review.md Outdated
Comment thread docs/inference-providers/guides/github-actions-code-review.md
Comment thread docs/inference-providers/guides/github-actions-code-review.md
@davanstrien

Copy link
Copy Markdown
Member Author

@Wauplin @pcuenca updated image links + added a gif showing the workflow. PR for doc images here: https://huggingface.co/datasets/huggingface/documentation-images/discussions/565. Compressed the gifs a bit, but let me know if you think they are still too big.

@davanstrien
davanstrien requested a review from Wauplin November 3, 2025 18:55

@Wauplin Wauplin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Really great! Thanks for adding the GIF, it really makes a difference IMO 🔥

Looks good to merge :)

@davanstrien
davanstrien merged commit cbace0a into main Nov 4, 2025
2 checks passed
@davanstrien
davanstrien deleted the open-code-github-actions-inference-providers-guide branch November 4, 2025 08:46
@julien-c

julien-c commented Nov 5, 2025

Copy link
Copy Markdown
Member

that GIF is cool!

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.

5 participants