+11
-5
@@ -1,5 +1,5 @@
|
||||
name: "PR Commenter (GitHub/Gitea compatible)"
|
||||
description: "Posts PR comments to GitHub or Gitea, supporting diffs or large file inputs."
|
||||
name: "PR Commenter (GitHub/Gitea Compatible)"
|
||||
description: "Posts PR comments to GitHub or Gitea, supporting diffs or large file inputs (plans, logs, etc.)."
|
||||
author: "Trez.One / AlexNorell (adapted for Gitea)"
|
||||
|
||||
inputs:
|
||||
@@ -17,7 +17,7 @@ inputs:
|
||||
description: "Repository owner (defaults to GITHUB_REPOSITORY_OWNER)"
|
||||
required: false
|
||||
api_url:
|
||||
description: "API base URL (for Gitea)"
|
||||
description: "API base URL (required for Gitea)"
|
||||
required: false
|
||||
pr_index:
|
||||
description: "Pull request index or number"
|
||||
@@ -36,7 +36,13 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Run comment script
|
||||
- name: Install Python dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install -r $GITHUB_ACTION_PATH/requirements.txt
|
||||
|
||||
- name: Run git-auto-comment
|
||||
shell: bash
|
||||
run: |
|
||||
python3 $GITHUB_ACTION_PATH/git-auto-comment.py
|
||||
@@ -48,4 +54,4 @@ runs:
|
||||
API_URL: ${{ inputs.api_url }}
|
||||
PR_INDEX: ${{ inputs.pr_index }}
|
||||
PLAN_FILE: ${{ inputs.plan_file }}
|
||||
COMMENT_TEMPLATE: ${{ inputs.comment_template }}
|
||||
COMMENT_TEMPLATE: ${{ inputs.comment_template }}
|
||||
|
||||
Reference in New Issue
Block a user