Skip to content

Add support for @import as alias for @include in markdown workflows#1240

Merged
pelikhan merged 6 commits intomainfrom
copilot/add-import-keyword-support
Oct 5, 2025
Merged

Add support for @import as alias for @include in markdown workflows#1240
pelikhan merged 6 commits intomainfrom
copilot/add-import-keyword-support

Conversation

Copy link
Contributor

Copilot AI commented Oct 5, 2025

  • Update regex patterns in pkg/parser/frontmatter.go to support both @include and @import (3 locations)
  • Update regex pattern in pkg/cli/remove_command.go to support both @include and @import
  • Update string check in ExpandIncludes to check for both @include and @import
  • Add unit tests for @import directive functionality
  • Update documentation to use @import in examples (docs/src/content/docs/reference/include-directives.md)
  • Update sample workflows to use @import (.github/workflows/*.md) - no samples used @include
  • Update instructions file to use @import
  • Run tests to verify all changes work correctly
  • Format, lint, and recompile workflows

All changes completed successfully. The @import keyword is now fully supported as an alias for @include throughout the codebase, with updated documentation, comprehensive tests, and properly formatted/recompiled workflows.

Original prompt

Add support for "@import" as a keyword like "@include" in markdown. Same meaning.

Use import in docs and samples.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits October 5, 2025 04:02
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for @import keyword in markdown Add support for @import as alias for @include in markdown workflows Oct 5, 2025
Copilot AI requested a review from pelikhan October 5, 2025 04:12
@pelikhan
Copy link
Contributor

pelikhan commented Oct 5, 2025

@copilot format, lint, recompile

1 similar comment
@pelikhan
Copy link
Contributor

pelikhan commented Oct 5, 2025

@copilot format, lint, recompile

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 5, 2025

@copilot format, lint, recompile

Done. Formatted JavaScript files, ran linter successfully, and recompiled all 58 workflow files. Commit: 39ff012

@pelikhan pelikhan marked this pull request as ready for review October 5, 2025 04:31
@pelikhan pelikhan mentioned this pull request Oct 5, 2025
9 tasks
Copy link
Contributor Author

Copilot AI commented Oct 5, 2025

@copilot format, lint, recompile

Already done in commit cdef58c. Verified: format ✓, lint ✓ (JavaScript formatting passes), recompile ✓ (all 58 workflows), tests ✓. No changes needed.

Copilot AI requested a review from pelikhan October 5, 2025 04:34
@pelikhan pelikhan merged commit 522ebbc into main Oct 5, 2025
18 of 22 checks passed
@pelikhan pelikhan deleted the copilot/add-import-keyword-support branch October 5, 2025 04:35
Copilot AI mentioned this pull request Feb 16, 2026
21 tasks
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.

2 participants