Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ioki-mobility/summaraizer-action
A GitHub Action that summarize GitHub issue (or pull request) comments.
https://github.com/ioki-mobility/summaraizer-action
Last synced: 28 days ago
JSON representation
A GitHub Action that summarize GitHub issue (or pull request) comments.
- Host: GitHub
- URL: https://github.com/ioki-mobility/summaraizer-action
- Owner: ioki-mobility
- License: mit
- Created: 2024-05-29T11:24:37.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-12-19T15:13:26.000Z (about 1 month ago)
- Last Synced: 2024-12-22T18:13:39.039Z (29 days ago)
- Language: JavaScript
- Homepage:
- Size: 459 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ioki-mobility/summaraizer-action/blob/main/LICENSE)
# summaraizer GitHub Action
## What?
Summaraizer summarizes your GitHub issues and pull requests discussions.
## How?
This is an example workflow file how to use this action:
```yml
name: Summaraizer
'on':
issue_comment:
types:
- created
jobs:
summarize:
runs-on: ubuntu-latest
if: contains(github.event.comment.body, 'AI summarize please')
permissions:
issues: write
steps:
- name: Summarize
uses: ioki-mobility/summaraizer-action@main
with:
provider: 'ollama'
provider-args: '--url https://ollama.example.com --model llama3.1'
gh-token: ${{ secrets.GITHUB_TOKEN }}
```The workflow will run if you create a comment that contains: _AI summarize please_.
It will then install the [summaraizer CLI](https://github.com/ioki-mobility/summaraizer) and
invoke it with the given provider parameters and the automatically added github parameters
from where this workflow was triggered by.
Finally, it will create a comment on that issue with the summarization of it.Checkout the [summaraizer project](https://github.com/ioki-mobility/summaraizer) for all possible providers and their respective arguments.
Please note that you could also run `ollama` [within your GitHub Action](https://stackoverflow.com/a/78539440).
The permission `issue: write` is required to add the comment to your issue.
## Why?
Ever run into a situation to got a bit overhelmed with the amound of comments
inside an issue or pull request?
Or you just came back from a nice 3 weeks vacation trip and now has to read
a 75 comments long issue to keep on track?Such problems are from the past now!
Just run the summaraizer over it to get a summarization of all comments
to get on track faster than ever before!## Action Inputs
Full a full-reference, checkout the [`action.yml`](action.yml) file.
**gh-token**
The GitHub token that read and write access to your repository. Defaults to `${{ github.token }}`.**summaraizer-version**
The version of the [summaraizer cli](https://github.com/ioki-mobility/summaraizer/releases) that is used. Defaults to `v0.0.1-alpha.00`.**provider**
The (ai) provider to use to summarize the comments. Defaults to `ollama`.**provider-args**
The arguments for the choosen provider. Checkout the [summaraizer documentation](https://github.com/ioki-mobility/summaraizer) for more information.## Release
1. Checkout the repo (`git clone ...`)
2. Install `npm`
3. Run `npm install`
4. Run `npm run build`
5. Push to the repo