GitHub setup failed for mcpmark-cicd__issue_management_workflow: ERROR: Cannot import template to a public repository.
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- python
- Domain
- ci-cd, testing-qa
Research direction
Start in github_state_manager.py, following the mcpmark-cicd branch that calls _import_template_repo and its private safety check. Run the affected mcpmark-cicd workflow tasks after the change; done means repository setup completes without the public-repository import error or state duplication failure.
Written by the indexing model from the issue text.
Description
This is what the log report when i run github mcp tasks,specifically mcpmark-cicd tasks:
Reason: The template contains @ mentions of real GitHub users from the original
repository. Importing to a public repository would send notifications to these
users, which is disruptive and inappropriate.
Solution: Set private=True when calling _import_template_repo().
| Failed to create initial state for mcpmark-cicd__linting_ci_workflow
| State setup failed for task: mcpmark-cicd__linting_ci_workflow
Retrying task due to pipeline error (State Duplication Error): mcpmark-cicd__pr_automation_workflow
The code that report this issue lies in github_state_manager.py:
if "mcpmark-cicd" in template_name:
repo_url = self._import_template_repo(template_dir, owner, False)
else:
repo_url = self._import_template_repo(template_dir, owner, True)
private = False when "mcpmark-cicd" in template_name, which leads to a state duplication error.
but in github_state_manager.py _import_template_repo, this code enables a safety check for prviate=True
# Safety check: Prevent importing to public repositories
# Public repos would send @ mention notifications to real users, causing spam
if not private:
error_msg = (
"ERROR: Cannot import template to a public repository.\n\n"
"Reason: The template contains @ mentions of real GitHub users from the original\n"
"repository. Importing to a public repository would send notifications to these\n"
"users, which is disruptive and inappropriate.\n\n"
"Solution: Set private=True when calling _import_template_repo()."
)
logger.error(error_msg)
# Clean up the created repo before raising
self._delete_repository(owner, repo_name)
raise RuntimeError(error_msg)
- Dominant language
- Python
- Stars
- 461
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eval-sys/mcpmark
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 3/5 1-2 days Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
test Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
All issues in eval-sys/mcpmark
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100