-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
update pr summary on review_requested #64
Comments
we have tried to use with:
token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify
summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint')
openai_azure_api_key: ${{ secrets.AZURE_API_KEY }}
openai_azure_endpoint: ${{ secrets.AZURE_API_BASE }} instead of with:
token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify
summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint')
openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }}
openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }} with corresponding github secret names. Latter worked, former did not. Why exactly is this the case? |
@fcakyon @SeeknnDestroy hi there! So you're saying that you have That's very strange, it should work for any secret names you define as long as they are passed in as you've shown above, i.e. this should work as long as they are defined in your org secrets: with:
token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify
summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint')
openai_azure_api_key: ${{ secrets.CUSTOM_SECRET_NAME1 }}
openai_azure_endpoint: ${{ secrets.CUSTOM_SECRET_NAME2 }} |
Hi @glenn-jocher, I just found out the actual problem: it indeed works fine with custom secret names but even though we have type |
@SeeknnDestroy oh yes, this is by design, otherwise large PRs may re-summarize on every commit, which would be costly for large works. I'm not sure of an easy way to opt-in to re-summarize, but one hack is to close and re-open the PR. Due to the non-deterministic nature of LLMs, even with seed 0 the summary may differ significantly for small changes, so i.e. if you have 10 commits and add a new very small change it's likely the entire summary will change significantly. |
@glenn-jocher how aobut https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_review |
Oh yeah this is a great idea! Should be pretty simple, I'll try to get it done a little later. |
@fcakyon @SeeknnDestroy ok guys I've updated the action in #70 to run PR summary also when a user requests a review on the PR by adding the I think this should work. What do you think? |
Here is example usage. Note that synchronize type is required to run things like Python, Markdown, Spelling, etc. pull_request:
branches: [main]
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
types: [opened, synchronize, review_requested] |
tested, all working fine! @glenn-jocher |
@fcakyon awesome! |
Check this PR for more detail: safevideo/autollm#223
The text was updated successfully, but these errors were encountered: