From 3615d17d70b90519eba9cf32e4faf388879b90bc Mon Sep 17 00:00:00 2001 From: Salvydas Lukosius Date: Tue, 19 May 2026 04:04:58 +0100 Subject: [PATCH 1/4] ci(trunk): refresh caller workflow --- .github/workflows/labeler.yml | 17 ----------------- .github/workflows/sync-labels.yml | 12 ------------ .github/workflows/trunk-check.yml | 29 ++++++++++++++++++----------- 3 files changed, 18 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/labeler.yml delete mode 100644 .github/workflows/sync-labels.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 33e118e..0000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: 🔖 Pull Request Labeler -on: - pull_request_target: - -permissions: - contents: read - pull-requests: write - -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GH_PAT }}" - sync-labels: false diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml deleted file mode 100644 index b9b9843..0000000 --- a/.github/workflows/sync-labels.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: "♻️ Sync Labels" - -on: - schedule: - - cron: "22 2 * * 2" - workflow_dispatch: - -jobs: - labels: - name: "♻️ Sync labels" - uses: z-shell/.github/.github/workflows/sync-labels.yml@main diff --git a/.github/workflows/trunk-check.yml b/.github/workflows/trunk-check.yml index 5d79f55..3fbfa78 100644 --- a/.github/workflows/trunk-check.yml +++ b/.github/workflows/trunk-check.yml @@ -1,23 +1,30 @@ --- -name: "⭕ Trunk" +name: Trunk Code Quality + on: push: branches: [main] tags: ["v*.*.*"] pull_request: - types: [opened, synchronize] + types: [opened, synchronize, reopened] schedule: - cron: "0 05 * * 5" - workflow_dispatch: + workflow_dispatch: {} + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: check: - if: github.event.schedule != '0 05 * * 5' - name: "⚡" - uses: z-shell/.github/.github/workflows/trunk.yml@main - upload: - if: github.event.schedule == '0 05 * * 5' - name: "🆙" + name: Trunk Code Quality + permissions: + actions: read + checks: write + contents: read uses: z-shell/.github/.github/workflows/trunk.yml@main - secrets: - trunk-token: ${{ secrets.TRUNK_TOKEN }} + with: + arguments: --no-progress From 059a33c55c8cbd32c33f52e22be128bd8605d4f5 Mon Sep 17 00:00:00 2001 From: Salvydas Lukosius Date: Tue, 19 May 2026 06:56:22 +0100 Subject: [PATCH 2/4] ci: remove deprecated assign workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove assign.yml — actions/add-to-project is deprecated and the organization no longer uses this workflow for project assignment. --- .github/workflows/assign.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/assign.yml diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml deleted file mode 100644 index 4d1f4e9..0000000 --- a/.github/workflows/assign.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -name: "❇️ Assign" - -on: - issues: - types: - - opened - pull_request: - types: - - labeled - -jobs: - assign: - runs-on: ubuntu-latest - steps: - - uses: actions/add-to-project@main - with: - project-url: https://github.com/orgs/z-shell/projects/4 - github-token: ${{ secrets.GH_PAT }} - labeled: bug 🐞, triage 📑, package 📦 - label-operator: OR From 711d325bc9756864bd5fc84bc0da7c508dcd0eef Mon Sep 17 00:00:00 2001 From: Salvydas Lukosius Date: Wed, 20 May 2026 07:43:44 +0100 Subject: [PATCH 3/4] chore(meta): secure workflows and unify agent instructions --- .github/dependabot.yml | 23 +++++++++++++++++++++++ .github/workflows/trunk-check.yml | 2 +- AGENTS.md | 7 +++++++ CLAUDE.md | 1 + GEMINI.md | 1 + 5 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 AGENTS.md create mode 120000 CLAUDE.md create mode 120000 GEMINI.md diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8209a42 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,23 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "05:30" + timezone: "UTC" + open-pull-requests-limit: 5 + groups: + github-actions: + patterns: + - "*" + + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "05:00" + timezone: "UTC" + open-pull-requests-limit: 5 diff --git a/.github/workflows/trunk-check.yml b/.github/workflows/trunk-check.yml index 3fbfa78..4f68188 100644 --- a/.github/workflows/trunk-check.yml +++ b/.github/workflows/trunk-check.yml @@ -25,6 +25,6 @@ jobs: actions: read checks: write contents: read - uses: z-shell/.github/.github/workflows/trunk.yml@main + uses: z-shell/.github/.github/workflows/trunk.yml@62b432bd1e71895def33d16166c90bc3131eaaaf # main with: arguments: --no-progress diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..59305b8 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,7 @@ +# Project Guidelines — zsh + +This project follows the organization-wide [Z-Shell Organization Guidelines](https://github.com/z-shell/.github/blob/main/AGENTS.md). + +## Project-Specific Details + +This repository contains packaged Zsh distribution metadata and documentation. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000..47dc3e3 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file diff --git a/GEMINI.md b/GEMINI.md new file mode 120000 index 0000000..47dc3e3 --- /dev/null +++ b/GEMINI.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file From 82b1e089fb702d43c69fc9f1fa45420022dd5634 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 22 May 2026 02:10:10 +0000 Subject: [PATCH 4/4] ci(trunk): restore caller secret mapping and schedule-specific mode Agent-Logs-Url: https://github.com/z-shell/zsh/sessions/ff524e06-a9f3-4c94-bea3-c5503e3f2297 Co-authored-by: ss-o <59910950+ss-o@users.noreply.github.com> --- .github/workflows/trunk-check.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/trunk-check.yml b/.github/workflows/trunk-check.yml index 4f68188..16b4df1 100644 --- a/.github/workflows/trunk-check.yml +++ b/.github/workflows/trunk-check.yml @@ -28,3 +28,6 @@ jobs: uses: z-shell/.github/.github/workflows/trunk.yml@62b432bd1e71895def33d16166c90bc3131eaaaf # main with: arguments: --no-progress + check-mode: ${{ github.event_name == 'schedule' && 'all' || '' }} + secrets: + trunk-token: ${{ secrets.TRUNK_TOKEN }}