Add GitHub issue templates, FUNDING.yml, and clone count workflow
This commit is contained in:
@@ -0,0 +1,144 @@
|
||||
name: Bug Report
|
||||
description: Report a problem with Model Resolver
|
||||
title: "[Bug]: "
|
||||
labels: ["bug"]
|
||||
body:
|
||||
- type: checkboxes
|
||||
id: prerequisites
|
||||
attributes:
|
||||
label: Prerequisites
|
||||
options:
|
||||
- label: I am running the latest version of ComfyUI.
|
||||
required: true
|
||||
- label: I am running the latest version of ComfyUI frontend.
|
||||
required: true
|
||||
- label: I am running the latest version of ComfyUI Model Resolver.
|
||||
required: true
|
||||
- label: I searched existing issues and did not find a duplicate.
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: area
|
||||
attributes:
|
||||
label: Affected area
|
||||
description: Which part of Model Resolver is failing?
|
||||
options:
|
||||
- Missing model detection
|
||||
- Local fuzzy matching
|
||||
- Online search
|
||||
- CivitAI download
|
||||
- HuggingFace download
|
||||
- CivArchive or Lora Manager archive download
|
||||
- Workflow update or relinking
|
||||
- Loaded models inspector
|
||||
- Settings, tokens, or connection tests
|
||||
- Browser UI
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: What happened?
|
||||
description: Describe the problem clearly. Include screenshots or a short recording if the issue is visual.
|
||||
placeholder: |
|
||||
Example: Model Resolver detects a missing LoRA, but clicking Download starts the task and then fails with a 403 error.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: reproduce
|
||||
attributes:
|
||||
label: Steps to reproduce
|
||||
description: Attach the workflow JSON or PNG when possible, especially for detection or relinking issues.
|
||||
placeholder: |
|
||||
1. Start ComfyUI with Model Resolver installed.
|
||||
2. Load a workflow that references a missing checkpoint or LoRA.
|
||||
3. Open the Model Resolver dialog.
|
||||
4. Search locally or online / click Download / click Apply.
|
||||
5. See the error.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: severity
|
||||
attributes:
|
||||
label: Impact
|
||||
options:
|
||||
- Crashes ComfyUI
|
||||
- Prevents workflow execution
|
||||
- Cannot resolve or download required models
|
||||
- Resolves to the wrong model or path
|
||||
- UI issue only
|
||||
- Minor inconvenience
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: model
|
||||
attributes:
|
||||
label: Model or node involved
|
||||
description: Name the missing model, model type, or loader node if relevant.
|
||||
placeholder: "e.g. checkpoint.safetensors, LoRA, VAELoader, Power Lora Loader"
|
||||
|
||||
- type: dropdown
|
||||
id: install_method
|
||||
attributes:
|
||||
label: Installation method
|
||||
options:
|
||||
- ComfyUI-Manager
|
||||
- Manual git clone
|
||||
- Portable ComfyUI package
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: browser
|
||||
attributes:
|
||||
label: Browser
|
||||
options:
|
||||
- Chrome / Chromium
|
||||
- Edge
|
||||
- Firefox
|
||||
- Brave
|
||||
- Safari
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: versions
|
||||
attributes:
|
||||
label: Environment
|
||||
description: Include versions and platform details.
|
||||
placeholder: |
|
||||
OS:
|
||||
Python:
|
||||
ComfyUI commit/version:
|
||||
ComfyUI frontend version:
|
||||
Model Resolver commit/version:
|
||||
GPU:
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: console_errors
|
||||
attributes:
|
||||
label: Browser console errors
|
||||
description: Paste red errors from the browser developer console if present.
|
||||
render: javascript
|
||||
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: ComfyUI terminal logs
|
||||
description: Paste relevant server logs, download errors, tracebacks, or resolver log output.
|
||||
render: shell
|
||||
|
||||
- type: textarea
|
||||
id: additional
|
||||
attributes:
|
||||
label: Additional context
|
||||
description: Add anything else that could help reproduce or diagnose the issue.
|
||||
@@ -0,0 +1,48 @@
|
||||
name: Documentation Request
|
||||
description: Suggest improvements or additions to the Model Resolver documentation
|
||||
title: "[Docs]: "
|
||||
labels: ["documentation"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Use this template for README or documentation improvements. For bugs or new behavior, use the Bug Report or Feature Request template instead.
|
||||
|
||||
- type: dropdown
|
||||
id: doc_area
|
||||
attributes:
|
||||
label: Documentation area
|
||||
options:
|
||||
- Installation
|
||||
- ComfyUI-Manager setup
|
||||
- Manual setup
|
||||
- Configuration and credentials
|
||||
- CivitAI or HuggingFace downloads
|
||||
- Missing model detection
|
||||
- Local matching and relinking
|
||||
- Supported nodes and model types
|
||||
- Troubleshooting
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: current_issue
|
||||
attributes:
|
||||
label: What is wrong or missing?
|
||||
description: Describe the confusing, outdated, incomplete, or missing documentation.
|
||||
placeholder: "Example: The README mentions HuggingFace tokens, but does not explain where to configure them in ComfyUI."
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: suggested_content
|
||||
attributes:
|
||||
label: Suggested improvement
|
||||
description: Provide concrete wording, examples, screenshots, or a description of what should be added.
|
||||
|
||||
- type: textarea
|
||||
id: context
|
||||
attributes:
|
||||
label: Additional context
|
||||
description: Add links, affected setup details, or examples of user confusion.
|
||||
@@ -0,0 +1,68 @@
|
||||
name: Feature Request
|
||||
description: Suggest an improvement for Model Resolver
|
||||
title: "[Feature]: "
|
||||
labels: ["enhancement"]
|
||||
body:
|
||||
- type: checkboxes
|
||||
id: prerequisites
|
||||
attributes:
|
||||
label: Before submitting
|
||||
options:
|
||||
- label: I am using the latest version of ComfyUI Model Resolver.
|
||||
required: true
|
||||
- label: I checked the README and existing issues for a similar feature request.
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: area
|
||||
attributes:
|
||||
label: Feature area
|
||||
options:
|
||||
- Missing model detection
|
||||
- Local model matching
|
||||
- Online search source
|
||||
- Download manager
|
||||
- Workflow relinking or apply behavior
|
||||
- Supported nodes or model types
|
||||
- Settings or credentials
|
||||
- Loaded models inspector
|
||||
- UI or UX
|
||||
- Documentation
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: Problem to solve
|
||||
description: Explain the workflow limitation, pain point, or missing capability.
|
||||
placeholder: |
|
||||
Example: Model Resolver can find the missing LoRA online, but I need an option to choose a different target folder before downloading.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: proposal
|
||||
attributes:
|
||||
label: Proposed solution
|
||||
description: Describe how the feature should work in ComfyUI.
|
||||
placeholder: |
|
||||
1. Open the Model Resolver dialog.
|
||||
2. Select a missing model.
|
||||
3. Choose a target folder from a dropdown.
|
||||
4. Start the download.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: alternatives
|
||||
attributes:
|
||||
label: Alternatives considered
|
||||
description: Mention workarounds or other approaches you tried.
|
||||
|
||||
- type: textarea
|
||||
id: examples
|
||||
attributes:
|
||||
label: Examples, links, or screenshots
|
||||
description: Add workflows, node examples, model sources, screenshots, or references that clarify the request.
|
||||
@@ -0,0 +1,90 @@
|
||||
name: GitHub Clone Count Update Everyday
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 */24 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: gh login
|
||||
run: echo "${{ secrets.SECRET_TOKEN }}" | gh auth login --with-token
|
||||
|
||||
- name: parse latest clone count
|
||||
run: |
|
||||
curl --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
https://api.github.com/repos/${{ github.repository }}/traffic/clones \
|
||||
> clone.json
|
||||
|
||||
- name: create gist and download previous count
|
||||
id: set_id
|
||||
run: |
|
||||
if gh secret list | grep -q "GIST_ID"
|
||||
then
|
||||
echo "GIST_ID found"
|
||||
echo "GIST=${{ secrets.GIST_ID }}" >> $GITHUB_OUTPUT
|
||||
curl https://gist.githubusercontent.com/${{ github.actor }}/${{ secrets.GIST_ID }}/raw/clone.json > clone_before.json
|
||||
if cat clone_before.json | grep '404: Not Found'; then
|
||||
echo "GIST_ID not valid anymore. Creating another gist..."
|
||||
gist_id=$(gh gist create clone.json | awk -F / '{print $NF}')
|
||||
echo $gist_id | gh secret set GIST_ID
|
||||
echo "GIST=$gist_id" >> $GITHUB_OUTPUT
|
||||
cp clone.json clone_before.json
|
||||
git rm --ignore-unmatch CLONE.md
|
||||
fi
|
||||
else
|
||||
echo "GIST_ID not found. Creating a gist..."
|
||||
gist_id=$(gh gist create clone.json | awk -F / '{print $NF}')
|
||||
echo $gist_id | gh secret set GIST_ID
|
||||
echo "GIST=$gist_id" >> $GITHUB_OUTPUT
|
||||
cp clone.json clone_before.json
|
||||
fi
|
||||
|
||||
- name: update clone.json
|
||||
run: |
|
||||
curl https://raw.githubusercontent.com/MShawon/github-clone-count-badge/master/main.py > main.py
|
||||
python3 main.py
|
||||
|
||||
- name: Update gist with latest count
|
||||
run: |
|
||||
content=$(sed -e 's/\\/\\\\/g' -e 's/\t/\\t/g' -e 's/\"/\\"/g' -e 's/\r//g' "clone.json" | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')
|
||||
echo '{"description": "${{ github.repository }} clone statistics", "files": {"clone.json": {"content": "'"$content"'"}}}' > post_clone.json
|
||||
curl -s -X PATCH \
|
||||
--user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @post_clone.json https://api.github.com/gists/${{ steps.set_id.outputs.GIST }} > /dev/null 2>&1
|
||||
|
||||
if [ ! -f CLONE.md ]; then
|
||||
shields="https://img.shields.io/badge/dynamic/json?color=success&label=Clone&query=count&url="
|
||||
url="https://gist.githubusercontent.com/${{ github.actor }}/${{ steps.set_id.outputs.GIST }}/raw/clone.json"
|
||||
repo="https://github.com/MShawon/github-clone-count-badge"
|
||||
echo ''> CLONE.md
|
||||
echo '
|
||||
**Markdown**
|
||||
|
||||
```markdown' >> CLONE.md
|
||||
echo "[]($repo)" >> CLONE.md
|
||||
echo '
|
||||
```
|
||||
|
||||
**HTML**
|
||||
```html' >> CLONE.md
|
||||
echo "<a href='$repo'><img alt='GitHub Clones' src='$shields$url&logo=github'></a>" >> CLONE.md
|
||||
echo '```' >> CLONE.md
|
||||
|
||||
git add CLONE.md
|
||||
git config --global user.name "GitHub Action"
|
||||
git config --global user.email "action@github.com"
|
||||
git commit -m "create clone count badge"
|
||||
fi
|
||||
|
||||
- name: Push
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user