GitHub setup failed for mcpmark-cicd__issue_management_workflow: ERROR: Cannot import template to a public repository.

Open Beginner friendly
#234 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eval-sys/mcpmark

All issues in eval-sys/mcpmark

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.