Commit graph

6 commits

Author SHA256 Message Date
bbbe4cb4f3 ai-review: allow passing API key as AICR_API_KEY
Requiring it to be GEMINI_API_KEY was always a bit dumb, but now
we're allowing for the repo to contain a config file it's more
dumb, because a repo could include a config file that configures
a different model provider. Of course they can just have the key
for that provider under the name GEMINI_API_KEY and stuff will
work, but it looks dumb. So, let's allow (and prefer) the more
generic name AICR_API_KEY, which identifies this as "the key for
ai_code_review, whatever model provider it's configured for".

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-04-21 11:55:03 -07:00
896b448825 ai-review: allow passing in a string to write as a config file
This is the best way I can figure to allow callers to do
arbitrary ai-code-review configuration, e.g. disabling the PR
summary, changing the language hint...

This seems more sane than mirroring every possibly setting as an
'input'. There doesn't seem to be a good way to pass through
arbitrary environment variables from the parent workflow (this is
a security measure I believe), so we can't do it that way. I tried
letting the repo carry an actual config file and checking that
out sparsely with actions/checkout, but it doesn't work because we
don't have nodejs in the ai-code-review container.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-04-21 11:53:29 -07:00
70cabdc6b0 ai-review.yml: drop inaccurate comment
This was copy/pasted from the original but we changed the logic
so it's inaccurate. The logic here does not need an explanation.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-03-04 22:47:25 -08:00
c1df39857d Drop secrets section from ai-review.yml
Per Matrix, it's not needed/supported on Forgejo, and causes odd
behavior on PRs to this repo itself.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-02-26 14:12:59 -08:00
caef1f5fd7 Remove runs-on, it should be in the repo workflow apparently
Some checks failed
ai-review.yml / Remove runs-on, it should be in the repo workflow apparently (push) Failing after 0s
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-02-26 13:30:28 -08:00
2bb28b45bc Initial commit with initial reusable version of AI review workflow
Some checks failed
ai-review.yml / Initial commit with initial reusable version of AI review workflow (push) Failing after 0s
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-02-26 12:06:55 -08:00