Conversation
Signed-off-by: Sall <inbox@ss-o.io>
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR cleans up the plugin’s load/unload behavior, expands the ZUnit test suite, and aligns the repo with z-shell org compliance/CI standards.
Changes:
- Refactors plugin initialization and core logic (better error handling, AUTOCD hook via
add-zsh-hook, alias save/restore,TERM=dumbbehavior). - Adds an expanded ZUnit test suite with helper stubs (fake
eza) and supporting tooling. - Updates repo hygiene and compliance: new CI workflows (ZUnit, Zsh
-n, CodeQL), Trunk config updates, and standardized templates/docs.
Reviewed changes
Copilot reviewed 28 out of 31 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| zunit.git | Adds/updates ZUnit submodule pointer for test runner sourcing. |
| zsh-eza.plugin.zsh | Improves autoloading and failure behavior; adds zsh-eza_plugin_unload. |
| functions/.zsh-eza | Refactors plugin logic for params, aliases, and AUTOCD hook; adjusts dumb-terminal behavior. |
| tests/zsh-eza.zunit | Adds expanded ZUnit test suite validating params, aliases, hooks, and failure modes. |
| tests/setup.zsh | Adds ZUnit setup/teardown for temp dirs and environment. |
| tests/helpers.zsh | Adds fake eza stub + helpers to run isolated Zsh sessions. |
| docs/README.md | Updates docs for new behavior/variables and corrects code block language tags. |
| bin/zunit | Vendors ZUnit runner script into repo for local/CI use. |
| bin/revolver | Vendors revolver dependency used by ZUnit output. |
| bin/color | Vendors color helper used by ZUnit output. |
| GEMINI.md | Points Gemini agent config to AGENTS.md. |
| CLAUDE.md | Points Claude agent config to AGENTS.md. |
| AGENTS.md | Adds repo orientation, plugin conventions, and test instructions. |
| .trunk/trunk.yaml | Updates Trunk CLI/plugins/lint config and runtime versions. |
| .trunk/.gitignore | Ignores additional Trunk tool/tmp directories. |
| .github/workflows/zsh-n.yml | Adds Zsh syntax check workflow using shared org action. |
| .github/workflows/trunk-check.yml | Switches to shared org Trunk workflow + adds schedule + permissions. |
| .github/workflows/test-native.yml | Adds native ZUnit workflow to run the expanded test suite. |
| .github/workflows/sync-labels.yml | Removes legacy labels sync workflow. |
| .github/workflows/stale.yml | Removes stale bot workflow. |
| .github/workflows/pr-labels.yml | Removes legacy PR label verification workflow. |
| .github/workflows/labeler.yml | Removes legacy labeler workflow. |
| .github/workflows/codeql.yml | Adds CodeQL workflow scanning GitHub Actions. |
| .github/labeler.yml | Removes labeler configuration file. |
| .github/copilot-instructions.md | Adds repo-specific Copilot guidance + public API reference. |
| .github/PULL_REQUEST_TEMPLATE.md | Adds standardized PR template. |
| .github/ISSUE_TEMPLATE/config.yml | Disables blank issues and adds support link. |
| .github/ISSUE_TEMPLATE/03_codebase_improvement.yml | Adds structured codebase-improvement issue template. |
| .github/ISSUE_TEMPLATE/02_feature_request.yml | Adds structured feature request template. |
| .github/ISSUE_TEMPLATE/01_bug_report.yml | Adds structured bug report template. |
| .github/CODEOWNERS | Adds CODEOWNERS entry for org ownership. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add Antigen installation section from main (commit 717b231) - Keep deleted labeler/stale workflows (org policy: remove these) - Keep org-workflow trunk-check.yml (SHA-pinned, preferred over inline steps) - Keep improved functions/.zsh-eza (modern param handling, proper hooks) - Pin z-shell/.github/actions/setup-zsh to SHA 62b432b - Switch ${=var} word splitting to ${(z)var} (respects quoted arguments) - Store fpath entry in ZSH_EZA_FPATH for consistent load/unload paths - Restore aliases via aliases[] assignment (avoids double-expansion) - Use z-shell/{revolver,color,zunit} forks in test-native.yml
Member
Author
|
All review conversations have been addressed in commits
14/14 ZUnit tests pass on the updated branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
```zicodeblock language tags with```zshin docstest-native.ymlandzsh-n.ymlto org sharedsetup-zshactioncopilot-instructions.mdwith plugin conventions and public API referenceAGENTS.mdwith repo orientation and org cross-referencesTest plan
export ZSH_EZA_REPO="$PWD" && zunit --tap tests/zsh-eza.zunit```zicodeblocks remain indocs/:grep -rn '```zi' docs/# Copyright (c) 2022 Salvydas Lukosiusif [[ $PMSPEC != *f* ]]; then