Skip to content

merly-ai/mentor-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merly Mentor Check

Merly Wizard Dog Icon

Runs MerlyMentor inside Docker against your repository, turning technical debt into technical strength.


🔮 What It Does

  • ✅ Determine Code Quality
  • ✅ Objective analysis
  • ✅ Turn technical debt into technical strength
  • ✅ Supports 15 programming languages
  • ✅ Works cross-platform (Linux, Windows, macOS)

🚀 Quick Start

name: mentor
uses: merly-ai/mentor-action@v1

⚙️ Inputs

Input Description Default
mm-key Merly API key (store as repo secret MM_KEY). none
checkout-code Perform actions/checkout internally? (true or false) true
path Path to your repo on disk (for custom checkouts) ${{ github.workspace }}
debug Enable Mentor’s debug & stdout output (true or false) false
max-issue-count Total number of new issues (of any priority) allowed before failing the pipeline. 0
max-issue-priority Fail immediately if any issue meets or exceeds this priority level (0–4 or Low/Medium/High/Critical). 0

🛠️ How It Works

  1. (Optional) Checks out your repository
  2. Binds your code into the container at /repo
  3. Runs the MerlyMentor Docker image (pinned by version) as your runner user to avoid permission issues
  4. Streams analysis results back into your workflow logs

📋 Examples

You just want to try it out

name: mentor
uses: merly-ai/mentor-action@v1

You have a license key

name: mentor
uses: merly-ai/mentor-action@v1
with:
  mm-key: ${{ secrets.mentor_key }}

Something not right and you want to enable debug mode

name: mentor
uses: merly-ai/mentor-action@v1
with:
  mm-key: ${{ secrets.mentor_key }}
  debug: true

Fail on too many issues (any priority)

name: mentor
uses: merly-ai/mentor-action@v1
with:
  max-issue-count: 5

This will fail if there are 5 or more issues of any priority.

Fail on high‑priority issues (regardless of count)

name: mentor
uses: merly-ai/mentor-action@v1
with:
  max-issue-priority: High

This will fail as soon as any issue is High or Critical, even if there are fewer than 5 issues overall.

Combine both checks

name: mentor
uses: merly-ai/mentor-action@v1
with:
  max-issue-count:     5
  max-issue-priority:  High

This will fail if either:

  • You have 5 or more issues of any priority, or
  • You have any issue at High or above (e.g. 3 Low + 1 High will fail immediately).

📥 Download Free Trial

Download Free Trial

Latest Release is

v0.13.0

📄 License

Apache License 2.0 © Merly.ai

About

Merly Mentor GitHub Action

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages