Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PR Poet

A Github action to turn commits into poetry

Fix silly typo in readme:

In README's pages where words reside,
A silly typo found, no longer inside,
With fixes applied, clarity shines new,
Commit marked, code finds its view.

Test it out

You can edit the HELLO.md file in this repo to open a new pull request to get a new poem.

Example workflow usage

name: Poems
on:
  # This gives the workflow's GitHub token permission to comment on fork PRs.
  pull_request_target:
    types: [opened]

permissions:
  pull-requests: write

jobs:
  post-poem-on-pr-open:
    runs-on: ubuntu-latest
    steps:
      - name: PR Poet
        id: poet
        uses: mkly/pr-poet@main
        with:
          message: ${{ github.event.pull_request.title }}
      - name: Post comment to PR
        uses: actions/github-script@v6
        with:
          github-token: ${{ github.token }}
          script: |
            await github.rest.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: `${{steps.poet.outputs.poem}}`
            })

The workflow uses a custom fine-tuned 4bit quantized 0.6B model (PR Poet Qwen3-0.6B Q4_K_M model) to be as small as possible while still creating a viable poem. See mkly/pr-poet-training for details on how the model was trained.

About

A Github action that makes use of a very small(0.6B 4bit), fine-tuned LLM to turn commits and other comments into poetry

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors