Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 23, 2025

Configures GitHub Copilot instructions per best practices documentation to provide context-aware code assistance.

Changes

  • Added .github/copilot-instructions.md with:
    • Project architecture: single-file Go CLI that converts markdown to HTML and launches in browser
    • Build matrix: cross-compilation for Linux (amd64/arm64/i386), Windows, macOS, FreeBSD
    • Conventions: version injection via ldflags, check() error handling pattern, //go:embed for resources
    • Platform-specific handling: Snap sandboxing constraints, MDVIEW_DIR environment override
    • Package targets: deb, snap, tarballs (tar.gz/zip)
    • Common tasks: flag addition workflow, HTML/CSS modifications, platform support expansion

File provides Copilot with repository context including Go 1.21 idioms, Makefile build patterns, and constraints like no existing test suite.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • gh.io
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)
    • Triggering command: /usr/bin/curl curl -L -s REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>✨ Set up Copilot instructions</issue_title>
<issue_description>Configure instructions for this repository as documented in Best practices for Copilot coding agent in your repository.

</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 23, 2025 19:42
Co-authored-by: mapitman <4205286+mapitman@users.noreply.github.com>
…ness

Co-authored-by: mapitman <4205286+mapitman@users.noreply.github.com>
Copilot AI changed the title [WIP] Configure instructions for Copilot in repository Add Copilot instructions for repository Dec 23, 2025
Copilot AI requested a review from mapitman December 23, 2025 19:45
@mapitman mapitman marked this pull request as ready for review December 25, 2025 08:53
Copilot AI review requested due to automatic review settings December 25, 2025 08:53
@mapitman mapitman merged commit eb418ee into main Dec 25, 2025
3 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds GitHub Copilot instructions to provide context-aware code assistance for the mdview repository. The instructions document follows best practices to help Copilot understand the project's architecture, conventions, and constraints.

  • Added comprehensive Copilot instructions covering project structure, build system, and coding conventions
  • Documented Go 1.21 idioms, cross-platform build patterns, and platform-specific handling requirements
  • Included common development tasks and workflows to guide future code modifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Set up Copilot instructions

2 participants