Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkarle/skonsole-generate-pr-description
A PR tool that uses Microsoft's Semantic Kernel and LLMs to generate PR descriptions
https://github.com/mkarle/skonsole-generate-pr-description
Last synced: about 1 month ago
JSON representation
A PR tool that uses Microsoft's Semantic Kernel and LLMs to generate PR descriptions
- Host: GitHub
- URL: https://github.com/mkarle/skonsole-generate-pr-description
- Owner: mkarle
- License: mit
- Created: 2023-09-12T21:40:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-18T22:09:49.000Z (about 1 year ago)
- Last Synced: 2024-08-01T13:19:36.872Z (4 months ago)
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-semantickernel - skonsole-generate-pr-description
README
# skonsole-generate-pr-description
This GitHub Action uses Microsoft's [Semantic Kernel](https://github.com/microsoft/semantic-kernel) and [SKonsole](https://github.com/lemillermicrosoft/skonsole) and LLMs to generate pull request descriptions. It is designed to help developers save time and effort in writing pull request descriptions by automatically generating them based on the changes made in the pull request.
## Usage
To use this action, you can add the following step to your workflow:
```yaml
- name: Generate PR description
uses: mkarle/skonsole-generate-pr-description@v1
with:
pull-request-diff-url: ${{ github.event.pull_request.diff_url }}
pull-request-number: ${{ github.event.pull_request.number }}
token: ${{ secrets.GITHUB_TOKEN }}
update-type: replace
env: # Set Azure credentials secrets as environment variables
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_CHAT_DEPLOYMENT_NAME }}
AZURE_OPENAI_API_ENDPOINT: ${{ secrets.AZURE_OPENAI_API_ENDPOINT }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
```This step will generate a pull request description based on the changes made in the pull request and set it as the description of the pull request.
## Inputs
This action accepts the following inputs:
- **pull-request-number** (*required*): The pull request number.
- **pull-request-diff-url** (*required*): The pull request number.
- **token** (*required*): The GitHub Token to use by this Action (e.g. secrets.GITHUB_TOKEN)
- **update-type**: How to update the PR title/body. Options are `suffix`, `prefix`, and `replace`. Defaults to `suffix`
You will need to set these environment variables:
- **AZURE_OPENAI_CHAT_DEPLOYMENT_NAME**
- **AZURE_OPENAI_API_ENDPOINT**
- **AZURE_OPENAI_API_KEY**## Outputs
This action does not have any outputs but will modify the PR title and body
## License
This project is licensed under the MIT License. See the LICENSE file for details.