Skip to content

ci: modernize GitHub Actions — remove bots, SHA-pin, add zd test#341

Open
ss-o wants to merge 20 commits into
mainfrom
ci/remove-obsolete-workflows
Open

ci: modernize GitHub Actions — remove bots, SHA-pin, add zd test#341
ss-o wants to merge 20 commits into
mainfrom
ci/remove-obsolete-workflows

Conversation

@ss-o
Copy link
Copy Markdown
Member

@ss-o ss-o commented May 16, 2026

Summary

  • Remove 5 obsolete workflows: rebase.yml, stale.yml, pr-labels.yml, lock.yml, zunit.yml
  • SHA-pin actions/labeler@v5 in labeler.yml
  • Bump actions/checkout v3 → v4 with SHA pin in zsh-n.yml; add permissions: contents: read
  • SHA-pin actions/checkout@v4 in trunk-check.yml
  • Switch dependabot.yml from daily → weekly; add target-branch: main
  • Add zd-integration.yml — calls z-shell/zd native ZUnit test workflow on changes to zi.zsh and lib/**

Test plan

  • labeler.yml triggers on PR target and applies labels
  • zsh-n.yml runs syntax check on push/PR to main/next for .zsh files
  • trunk-check.yml runs Trunk code quality checks
  • dependabot.yml opens weekly GHA dependency update PRs targeting main
  • zd-integration.yml calls zd test workflow (requires z-shell/zd@main to have test-native.yml with workflow_call — pending zd PR Generic maintenance tasks #63 merge)

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings May 16, 2026 05:59
@ss-o ss-o requested a review from a team as a code owner May 16, 2026 05:59
Copy link
Copy Markdown

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 primarily modernizes the repository’s GitHub Actions setup (removing bot workflows, SHA-pinning actions, and adding a reusable zd test workflow), and also updates contribution/governance docs and several Zi runtime behaviors in the Zsh codebase (self-update, module build flow, completion handling, and version reporting).

Changes:

  • CI: remove obsolete workflows, SHA-pin key actions, extend Trunk checks to next, and add zd integration + commit/branch linting.
  • Project hygiene: add Copilot instructions, expand CONTRIBUTING/PR template, and ignore AI-assistant config files.
  • Zi runtime: add version detection/subcommand, refactor module build/reset logic, and adjust completion/self-update/reload behavior.

Reviewed changes

Copilot reviewed 23 out of 24 changed files in this pull request and generated 15 comments.

Show a summary per file
File Description
zi.zsh Adds version detection/subcommand and refactors option/help paths; other runtime behavior adjustments.
lib/zsh/side.zsh Minor fixes + removes .zi-check-module in favor of updated module flow.
lib/zsh/rpm2cpio.zsh Tightens variable scoping (sigsize becomes local).
lib/zsh/install.zsh Updates completion install/compinit behavior and option naming.
lib/zsh/git-process-output.zsh Tweaks progress output formatting and color handling.
lib/zsh/autoload.zsh Major changes: auto-reload, self-update flow, module build logic, messaging, and timing output.
lib/_zi Updates completion definitions (adds version command).
docs/README.md HTML/layout updates for badges/header.
docs/CONTRIBUTING.md Replaces stub with detailed branch/commit guidelines.
.gitignore Ignores AI-assistant config files.
.github/workflows/zunit.yml Removes obsolete ZUnit workflow.
.github/workflows/zsh-n.yml SHA-pins actions/checkout and adds contents: read permissions.
.github/workflows/zd-integration.yml Adds reusable workflow call into z-shell/zd for native tests.
.github/workflows/trunk-check.yml SHA-pins checkout and runs on main + next.
.github/workflows/stale.yml Removes stale-bot workflow.
.github/workflows/rebase.yml Removes rebase-bot workflow.
.github/workflows/pr-labels.yml Removes PR label verification bot workflow.
.github/workflows/lock.yml Removes lock-threads bot workflow.
.github/workflows/labeler.yml SHA-pins actions/labeler@v5.
.github/workflows/commit-lint.yml Adds commit/PR-title/branch-name lint workflow.
.github/labeler.yml Migrates labeler config to changed-files format.
.github/dependabot.yml Switches to weekly schedule and sets target branch.
.github/copilot-instructions.md Adds repo-specific Copilot contribution guidelines.
.github/PULL_REQUEST_TEMPLATE.md Updates PR template to align with new contribution rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/zsh/autoload.zsh Outdated
Comment thread lib/zsh/autoload.zsh Outdated
Comment thread lib/zsh/autoload.zsh Outdated
Comment thread lib/zsh/autoload.zsh Outdated
Comment thread lib/_zi Outdated
Comment thread .github/workflows/zd-integration.yml Outdated
Comment thread zi.zsh Outdated
Comment thread zi.zsh Outdated
Comment thread lib/zsh/autoload.zsh
Comment thread lib/zsh/autoload.zsh
ss-o and others added 15 commits May 16, 2026 09:15
Signed-off-by: Salvydas Lukosius <ss-o@users.noreply.github.com>
Signed-off-by: Salvydas Lukosius <ss-o@users.noreply.github.com>
- Add .github/copilot-instructions.md with commit format rules,
  branch model documentation, and prohibition on AI co-author trailers
  or AI config files (AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules…)

- Add .github/workflows/commit-lint.yml: PR workflow that validates
  conventional commit subject format, blocks AI co-author trailers,
  checks PR title format, and enforces branch naming convention

- Update .github/workflows/trunk-check.yml: run Trunk on next branch
  in addition to main to catch issues before integration

- Update .github/PULL_REQUEST_TEMPLATE.md: document the branch model
  (branch from next, PR to next, next→main for releases) and add
  checklist items for commit hygiene

- Update docs/CONTRIBUTING.md: full branch model diagram, commit
  message guide, and explicit list of files not to add to the repo

- Update .gitignore: add AI assistant config file patterns
Removes five workflows no longer needed:
- rebase.yml: autorebase bot (superseded by merge queues)
- stale.yml: automated stale-issue closer (policy changed)
- pr-labels.yml: label verification bot (replaced by labeler.yml)
- lock.yml: issue/PR locking bot (no longer used)
- zunit.yml: Docker-based test workflow (superseded by zd-integration.yml)
- autoload.zsh: use loop variable rm_file (was rm_compiled) in zi-auto-reload
- autoload.zsh: drop --autostash from git merge (not a valid option)
- autoload.zsh: capture pipestatus[1] from make|tee; drop redundant second make
- autoload.zsh: make cp explicit (zpmod.so → zpmod.bundle, no brace expansion)
- autoload.zsh: guard --reset recompile message with RECOMPILE_REQUEST existence
- docs/README.md: fix thref → href on VIM badge; fix </p></a> → </a></p>
- zi.zsh: remove duplicate 'version' entry from ZI[cmd-list]
- zi.zsh: fix spelling 'noticable' → 'noticeable' and grammar in zicompinit_fast comment
@ss-o ss-o force-pushed the ci/remove-obsolete-workflows branch from 703a5d7 to 8b01418 Compare May 16, 2026 08:16
@ss-o ss-o changed the title ci: modernize GitHub Actions — remove bots, SHA-pin actions, add zd integration ci: modernize GitHub Actions — remove bots, SHA-pin, add zd test May 16, 2026
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