Skip to content

[BUG] github install creates workflow file even when not in a git repository #1249

@eureka0928

Description

@eureka0928

Project

cortex

Description

The command creates a .github/workflows/Cortex.yml file even when run from a non-git directory, which is inconsistent with github status that correctly warns about not being in a git repo.

Error Message

Debug Logs

System Information

Windows 10/11
Version Tested: v0.1.1

Screenshots

No response

Steps to Reproduce

  1. Navigate to a non-git directory
  2. Run cortex github install

Expected Behavior

Should error with "Not a git repository" similar to other git-related commands.

Actual Behavior

GitHub Actions workflow installed!
Location: .\.github\workflows\Cortex.yml

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    validValid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions