From b85dab9ad63713cfb4247c67bb2a82458cca57fd Mon Sep 17 00:00:00 2001 From: Salvydas Lukosius Date: Tue, 19 May 2026 00:39:06 +0100 Subject: [PATCH 1/2] chore: remove deprecated templates, stale workflows, and metrics from main Remove deprecated workflow templates no longer recommended by org policy: - lock-action (policy: manage manually) - stale-action (policy: manage manually) - commit-action (outdated checkout@v3, mutable internal ref) - project-tracker (referenced add-to-project.yml which is also removed) Remove workflows retired from this repo: - add-to-project.yml: reusable workflow (repos calling it will need to inline the action directly or be updated) - welcome.yml: welcome-message automation removed Remove dead configuration: - .github/lib/labeler.yml: actions/labeler is deprecated per org policy; no active workflow references this file Remove metrics SVGs from main: - All 16 SVG files under metrics/ are removed from main; they now live on the dedicated metrics branch and will be updated there going forward --- .github/lib/labeler.yml | 49 ----- .github/workflows/add-to-project.yml | 29 --- .github/workflows/welcome.yml | 24 --- metrics/plugin/followup/f-sy-h_followup.svg | 171 ---------------- metrics/plugin/followup/followup.svg | 193 ------------------ metrics/plugin/followup/wiki_followup.svg | 171 ---------------- metrics/plugin/followup/zi_followup.svg | 171 ---------------- metrics/plugin/metrics.svg | 48 ----- metrics/plugin/pagespeed/detailed.svg | 37 ---- metrics/plugin/people/f-sy-h-repository.svg | 82 -------- metrics/plugin/people/wiki-repository.svg | 76 ------- metrics/plugin/people/zi-repository.svg | 70 ------- metrics/plugin/projects/projects.svg | 30 --- metrics/plugin/repositories_metrics.svg | 78 ------- metrics/plugin/rss/dev.tag.zsh.rss.svg | 42 ---- metrics/plugin/rss/dev.zshell.rss.svg | 42 ---- metrics/plugin/rss/zsh/activity.svg | 42 ---- metrics/plugin/stargazers/worldmap.svg | 26 --- metrics/plugin/tweets/tweets.svg | 30 --- .../commit-action.properties.json | 5 - workflow-templates/commit-action.yml | 27 --- .../lock-action.properties.json | 5 - workflow-templates/lock-action.yml | 32 --- .../project-tracker.properties.json | 6 - workflow-templates/project-tracker.yml | 17 -- .../stale-action.properties.json | 6 - workflow-templates/stale-action.yml | 44 ---- 27 files changed, 1553 deletions(-) delete mode 100644 .github/lib/labeler.yml delete mode 100644 .github/workflows/add-to-project.yml delete mode 100644 .github/workflows/welcome.yml delete mode 100644 metrics/plugin/followup/f-sy-h_followup.svg delete mode 100644 metrics/plugin/followup/followup.svg delete mode 100644 metrics/plugin/followup/wiki_followup.svg delete mode 100644 metrics/plugin/followup/zi_followup.svg delete mode 100644 metrics/plugin/metrics.svg delete mode 100644 metrics/plugin/pagespeed/detailed.svg delete mode 100644 metrics/plugin/people/f-sy-h-repository.svg delete mode 100644 metrics/plugin/people/wiki-repository.svg delete mode 100644 metrics/plugin/people/zi-repository.svg delete mode 100644 metrics/plugin/projects/projects.svg delete mode 100644 metrics/plugin/repositories_metrics.svg delete mode 100644 metrics/plugin/rss/dev.tag.zsh.rss.svg delete mode 100644 metrics/plugin/rss/dev.zshell.rss.svg delete mode 100644 metrics/plugin/rss/zsh/activity.svg delete mode 100644 metrics/plugin/stargazers/worldmap.svg delete mode 100644 metrics/plugin/tweets/tweets.svg delete mode 100644 workflow-templates/commit-action.properties.json delete mode 100644 workflow-templates/commit-action.yml delete mode 100644 workflow-templates/lock-action.properties.json delete mode 100644 workflow-templates/lock-action.yml delete mode 100644 workflow-templates/project-tracker.properties.json delete mode 100644 workflow-templates/project-tracker.yml delete mode 100644 workflow-templates/stale-action.properties.json delete mode 100644 workflow-templates/stale-action.yml diff --git a/.github/lib/labeler.yml b/.github/lib/labeler.yml deleted file mode 100644 index 41241bcb2..000000000 --- a/.github/lib/labeler.yml +++ /dev/null @@ -1,49 +0,0 @@ -documentation ๐Ÿ“: - - "governance/**/*.md" - - "community/**/*.md" - - "ecosystem/**/*.md" - - "docs/**/*.md" -dependencies ๐Ÿ“ฆ: - - "package.json" - - "pnpm-lock.yaml" - - "yarn.lock" -enhancement โœจ: - - "functions/**" - - "profile/**" - - "src/**" - - "lib/**" -maintenance ๐Ÿ“ˆ: - - ".editorconfig" - - ".github/CODEOWNERS" - - ".github/*.md" - - ".github/*.yml" - - ".github/*.json" - - ".imgbotconfig" - - ".hadolint.y*" - - ".vscode/*" - - "tsconfig.json" - - "babel.config.js" - - "docusaurus.config.js" - - ".all-contributorsrc" - - "crowdin.yml" - - "netlify.toml" - - ".prettierrc" - - ".prettierignore" - - ".markdownlint.json" - - ".deepsource.toml" - - ".trunk/*.yaml" - - ".trunk/*.json" - - ".trunk/*rc" -i18n ๐ŸŒ: - - "i18n/**" -ci ๐Ÿค–: - - "workflow-templates/**" - - ".github/workflows/**" - - "actions/**" -#annex ๐ŸŒ€: -# - "functions/โ†’za**" -#plugin โš™๏ธ: -# - "functions/**" -# - "*.zsh" -#package ๐Ÿ“ฆ: -# - "package.json" diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml deleted file mode 100644 index da2530974..000000000 --- a/.github/workflows/add-to-project.yml +++ /dev/null @@ -1,29 +0,0 @@ -# Reusable workflow: add a new issue or PR to the Z-Shell Tracker project. -# -# Called by per-repo workflows via: -# uses: z-shell/.github/.github/workflows/add-to-project.yml@main -# secrets: inherit -# -# Required org secret: ADD_TO_PROJECT_PAT -# Classic PAT with 'project' scope, added at: -# https://github.com/organizations/z-shell/settings/secrets/actions -name: Add to Z-Shell Tracker - -on: - workflow_call: - inputs: - project-url: - description: Full URL of the GitHub Project (e.g. https://github.com/orgs/z-shell/projects/28) - required: false - type: string - default: https://github.com/orgs/z-shell/projects/28 - -jobs: - add-to-project: - name: Add item to project - runs-on: ubuntu-latest - steps: - - uses: actions/add-to-project@v2.0.0 - with: - project-url: ${{ inputs.project-url }} - github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml deleted file mode 100644 index 9bbc887cd..000000000 --- a/.github/workflows/welcome.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -name: ๐Ÿ‘‹ Welcome message -on: - fork: - issues: - types: [opened] - issue_comment: - types: [created] - pull_request_target: - types: [opened] - pull_request_review_comment: - types: [created] - -jobs: - welcome: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: EddieHubCommunity/gh-action-community/src/welcome@b0655168a4ac6fb03e3b649d943ad2c583900c35 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: "

Thank you for your feedback on this project!

We will endeavour to get back to you soon." - pr-message: "

Thank you for contributing to this project!

Your support is much appreciated. We will endeavour to get back to you soon." - footer: "Community Discussions" diff --git a/metrics/plugin/followup/f-sy-h_followup.svg b/metrics/plugin/followup/f-sy-h_followup.svg deleted file mode 100644 index a447bdacb..000000000 --- a/metrics/plugin/followup/f-sy-h_followup.svg +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - -
-
-

- - - - z-shell/f-sy-h -

-
-
-
- - - - Created 4 years ago -
-
- - - - Deployed 27 times -
-
- - - - 1.84 MB used -
-
-
-
- - - - - - - - - - - - - - - - - - -
-
- - - - 1 Environment -
-
-
-
-
-

- - - - Overall issues and pull requests status -

-
-
-
-
-

Issues

- - - - - - - - - - - - - - -
-
- - - - - 13 open -
-
- - - - - 7 closed -
-
- - - - 0 drafts -
-
- - - - 0 skipped -
-
-
-
-

Pull requests

- - - - - - - - - - - - - - -
-
- - - - 3 open -
-
- - - - 21 merged -
-
- - - - - 0 drafts -
-
- - - - 4 closed -
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/followup/followup.svg b/metrics/plugin/followup/followup.svg deleted file mode 100644 index 8da3b9e71..000000000 --- a/metrics/plugin/followup/followup.svg +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - - -
-
-

- - - - Overall issues and pull requests status -

-
-
-

On Z-Shell's repositories

-
-
-

Issues

- - - - - - - - - - - - - - -
- - - - From communities -
-
-
- - - - - 44 open -
-
- - - - - 474 closed -
-
- - - - 0 drafts -
-
- - - - 0 skipped -
-
-
- - - - From members/collaborators -
-
-
- - - - - 25 open -
-
- - - - - 88 closed -
-
- - - - 0 drafts -
-
- - - - 0 skipped -
-
-
-
-

Pull requests

- - - - - - - - - - - - - - -
- - - - From communities -
-
-
- - - - 30 open -
-
- - - - 1452 merged -
-
- - - - - 0 drafts -
-
- - - - 557 closed -
-
-
- - - - From members/collaborators -
-
-
- - - - 23 open -
-
- - - - 1071 merged -
-
- - - - - 1 draft -
-
- - - - 487 closed -
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/followup/wiki_followup.svg b/metrics/plugin/followup/wiki_followup.svg deleted file mode 100644 index 2a93e1acc..000000000 --- a/metrics/plugin/followup/wiki_followup.svg +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - -
-
-

- - - - z-shell/wiki -

-
-
-
- - - - Created 3 years ago -
-
- - - - Deployed 8619 times -
-
- - - - 54.7 MB used -
-
-
-
- - - - - - - - - - - - - - - - - - -
-
- - - - 3 Environments -
-
-
-
-
-

- - - - Overall issues and pull requests status -

-
-
-
-
-

Issues

- - - - - - - - - - - - - - -
-
- - - - - 1 open -
-
- - - - - 31 closed -
-
- - - - 0 drafts -
-
- - - - 0 skipped -
-
-
-
-

Pull requests

- - - - - - - - - - - - - - -
-
- - - - 2 open -
-
- - - - 523 merged -
-
- - - - - 0 drafts -
-
- - - - 170 closed -
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/followup/zi_followup.svg b/metrics/plugin/followup/zi_followup.svg deleted file mode 100644 index efcb18e15..000000000 --- a/metrics/plugin/followup/zi_followup.svg +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - -
-
-

- - - - z-shell/zi -

-
-
-
- - - - Created 4 years ago -
-
- - - - Deployed 30 times -
-
- - - - 1.31 MB used -
-
-
-
- - - - - - - - - - - - - - - - - - -
-
- - - - 1 Environment -
-
-
-
-
-

- - - - Overall issues and pull requests status -

-
-
-
-
-

Issues

- - - - - - - - - - - - - - -
-
- - - - - 13 open -
-
- - - - - 68 closed -
-
- - - - 0 drafts -
-
- - - - 0 skipped -
-
-
-
-

Pull requests

- - - - - - - - - - - - - - -
-
- - - - 3 open -
-
- - - - 133 merged -
-
- - - - - 0 drafts -
-
- - - - 41 closed -
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/metrics.svg b/metrics/plugin/metrics.svg deleted file mode 100644 index d5b5985ea..000000000 --- a/metrics/plugin/metrics.svg +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - -
-
-

- - Z-Shell -

-
-
-
- - - - Joined GitHub 4 years ago -
-
- - - - United Kingdom -
-
-
-
- - - - 4 members -
-
- - - - Verified -
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/pagespeed/detailed.svg b/metrics/plugin/pagespeed/detailed.svg deleted file mode 100644 index 98a6f8983..000000000 --- a/metrics/plugin/pagespeed/detailed.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - -
-
-
-

- - - - PageSpeed Insights -

-
- - - -
-
-
-
-
-
- - - - Unexpected error -
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/people/f-sy-h-repository.svg b/metrics/plugin/people/f-sy-h-repository.svg deleted file mode 100644 index c838fc780..000000000 --- a/metrics/plugin/people/f-sy-h-repository.svg +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - -
-
-

- - - - 22 contributors -

-
-
- - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-

- - - - 206 stargazers -

-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/people/wiki-repository.svg b/metrics/plugin/people/wiki-repository.svg deleted file mode 100644 index ea6b3b334..000000000 --- a/metrics/plugin/people/wiki-repository.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - -
-
-

- - - - 20 contributors -

-
-
- - - - - - - - - - - - - - - - - - - - -
-
-
-
-

- - - - 20 stargazers -

-
-
- - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/people/zi-repository.svg b/metrics/plugin/people/zi-repository.svg deleted file mode 100644 index ddf60dea3..000000000 --- a/metrics/plugin/people/zi-repository.svg +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - -
-
-

- - - - 10 contributors -

-
-
- - - - - - - - - - -
-
-
-
-

- - - - 895 stargazers -

-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/projects/projects.svg b/metrics/plugin/projects/projects.svg deleted file mode 100644 index 5d4176b90..000000000 --- a/metrics/plugin/projects/projects.svg +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - -
-
-

- - - - Projects -

-
-
-
- - - - Unexpected error -
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/repositories_metrics.svg b/metrics/plugin/repositories_metrics.svg deleted file mode 100644 index 20329e4c4..000000000 --- a/metrics/plugin/repositories_metrics.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -
-
-
-
-

- - - - 94 Repositories -

-
-
-
- - - - Prefers GPL-3.0 license -
-
- - - - 40 Releases -
-
- - - - 1 Package -
-
- - - - 1.70 GB used -
-
-
-
- - - - 0 Sponsors -
-
- - - - 1598 Stargazers -
-
- - - - 174 Forkers -
-
- - - - 31 Watchers -
-
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/rss/dev.tag.zsh.rss.svg b/metrics/plugin/rss/dev.tag.zsh.rss.svg deleted file mode 100644 index 0f6a9271d..000000000 --- a/metrics/plugin/rss/dev.tag.zsh.rss.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - -
-
-

- - - - DEV Community: zsh RSS feed -

-
-
-
- - - -
-
5 CLI Tools I Use to Keep Terminal Workflows Less Annoying
-
7 May 2026
-
-
-
- - - -
-
How to Manage Shell Commands Without Turning zsh or bash Into a Junk Drawer
-
7 May 2026
-
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/rss/dev.zshell.rss.svg b/metrics/plugin/rss/dev.zshell.rss.svg deleted file mode 100644 index 32328c7c3..000000000 --- a/metrics/plugin/rss/dev.zshell.rss.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - -
-
-

- - - - DEV Community: Z-Shell RSS feed -

-
-
-
- - - -
-
โฎ ZI โฏ Vim Syntax
-
28 Apr 2022
-
-
-
- - - -
-
๐Ÿš€ Valgrind automatic test suite
-
18 Apr 2022
-
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/rss/zsh/activity.svg b/metrics/plugin/rss/zsh/activity.svg deleted file mode 100644 index f6e3090e5..000000000 --- a/metrics/plugin/rss/zsh/activity.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - -
-
-

- - - - Activity for zsh RSS feed -

-
-
-
- - - -
-
dana committed [dd839a] on Code
-
17 May 2026
-
-
-
- - - -
-
dana committed [b2dc18] on Code
-
17 May 2026
-
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/stargazers/worldmap.svg b/metrics/plugin/stargazers/worldmap.svg deleted file mode 100644 index d95cd0e2f..000000000 --- a/metrics/plugin/stargazers/worldmap.svg +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
-

- - - - Stargazers -

-
- - - - Google Maps API token is not set -
-
-
-
-
-
\ No newline at end of file diff --git a/metrics/plugin/tweets/tweets.svg b/metrics/plugin/tweets/tweets.svg deleted file mode 100644 index 0a6a5fc83..000000000 --- a/metrics/plugin/tweets/tweets.svg +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - -
-
-

- - - - Latest tweets -

-
-
-
- - - - API error: 402 -
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/workflow-templates/commit-action.properties.json b/workflow-templates/commit-action.properties.json deleted file mode 100644 index 324b11df0..000000000 --- a/workflow-templates/commit-action.properties.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "GitHub Action - Commit", - "description": "GitHub Action commits any changed files and pushes changes back to the origin repository.", - "iconName": "z-shell" -} diff --git a/workflow-templates/commit-action.yml b/workflow-templates/commit-action.yml deleted file mode 100644 index 5fc63c129..000000000 --- a/workflow-templates/commit-action.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: "๐Ÿ†— Commit" - -on: [push] - -jobs: - commit: - runs-on: ubuntu-latest - steps: - - name: โคต๏ธ Check out code from GitHub - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} - - run: | - echo "Something to be commited" - date > date.txt - - name: "๐Ÿ†— Commit" - uses: z-shell/.github/actions/commit@main - with: - # Git commit message (optional). - commitMessage: ${{ github.sha }} - # To specify a directory other than the repository root to check for changed files (optional). - workDir: . - # Commit user and email (optional). - commitUserName: ${{ secrets.ACTIONS_USER }} - commitUserEmail: ${{ secrets.ACTIONS_MAIL }} diff --git a/workflow-templates/lock-action.properties.json b/workflow-templates/lock-action.properties.json deleted file mode 100644 index 2b7044dd7..000000000 --- a/workflow-templates/lock-action.properties.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Lock closed issues and PRs", - "description": "Lock Threads is a GitHub Action that locks closed issues and pull requests after a period of inactivity.", - "iconName": "z-shell" -} diff --git a/workflow-templates/lock-action.yml b/workflow-templates/lock-action.yml deleted file mode 100644 index 9ba0066c9..000000000 --- a/workflow-templates/lock-action.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: "๐Ÿ”’ Lock closed issues and PRs" - -on: - schedule: - - cron: "30 2 * * *" - workflow_call: {} - -jobs: - lock: - name: ๐Ÿ” Lock closed issues and PRs - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - concurrency: - group: lock - steps: - - uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836 - with: - github-token: ${{ github.token }} - issue-inactive-days: "30" - issue-lock-reason: "" - issue-comment: > - Issue closed and locked due to lack of activity. If you encounter this same issue, please open a new issue - and refer to this closed one. - pr-inactive-days: "7" - pr-lock-reason: "" - pr-comment: > - Pull Request closed and locked due to lack of activity. If you'd like to build on this closed PR, you can - clone it using this method: https://stackoverflow.com/a/14969986 Then open a new PR, referencing this closed - PR in your message. diff --git a/workflow-templates/project-tracker.properties.json b/workflow-templates/project-tracker.properties.json deleted file mode 100644 index b1fff987c..000000000 --- a/workflow-templates/project-tracker.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Z-Shell Project Tracker", - "description": "Automatically adds new issues and pull requests to the Z-Shell Tracker project board.", - "iconName": "z-shell", - "categories": ["Automation", "Project Management"] -} diff --git a/workflow-templates/project-tracker.yml b/workflow-templates/project-tracker.yml deleted file mode 100644 index fc3efa8f4..000000000 --- a/workflow-templates/project-tracker.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Add issues and PRs to the Z-Shell Tracker project automatically. -# -# This workflow calls the shared reusable workflow from z-shell/.github. -# No secrets need to be configured per-repo โ€” ADD_TO_PROJECT_PAT is an -# org-level secret inherited automatically. -name: Track in Z-Shell Tracker - -on: - issues: - types: [opened, reopened, transferred] - pull_request: - types: [opened, reopened] - -jobs: - track: - uses: z-shell/.github/.github/workflows/add-to-project.yml@main - secrets: inherit diff --git a/workflow-templates/stale-action.properties.json b/workflow-templates/stale-action.properties.json deleted file mode 100644 index 4c5f146cc..000000000 --- a/workflow-templates/stale-action.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Close Stale Issues and PRs", - "description": "Warns and then closes issues and PRs that have had no activity for a specified amount of time.", - "iconName": "z-shell", - "categories": ["Automation", "Shell"] -} diff --git a/workflow-templates/stale-action.yml b/workflow-templates/stale-action.yml deleted file mode 100644 index d208f8023..000000000 --- a/workflow-templates/stale-action.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -name: "๐Ÿ‘ป Stale" - -on: - schedule: - - cron: "0 8 * * *" - workflow_dispatch: - -permissions: - contents: write - issues: write - pull-requests: write - -jobs: - stale: - name: "๐Ÿงน Clean up stale issues and PRs" - runs-on: ubuntu-latest - steps: - - name: "๐Ÿš€ Run stale" - uses: actions/stale@v6 - with: - # ๐Ÿ“‹ https://github.com/actions/stale#all-options - exempt-all-pr-assignees: true - exempt-all-pr-milestones: true - remove-stale-when-updated: true - days-before-issue-stale: 30 - days-before-pr-stale: 45 - days-before-issue-close: 5 - days-before-pr-close: 10 - stale-issue-label: "stale ๐Ÿ‘ป" - exempt-issue-labels: "no-stale ๐Ÿ”’,help-wanted ๐Ÿ‘ฅ" - stale-issue-message: > - There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be - marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us - know if that works for you by leaving a ๐Ÿ‘ Because this issue is marked as stale, it will be closed and - locked in 7 days if no further activity occurs. Thank you for your contributions! - close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity." - stale-pr-label: "stale ๐Ÿ‘ป" - exempt-pr-labels: "no-stale ๐Ÿ”’" - stale-pr-message: > - There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has - been marked as stale. This PR will be closed and locked in 7 days if no further activity occurs. Thank you - for your contributions! - close-pr-message: "This PR was closed because it has been stalled for 10 days with no activity." From 6caff77f4147389eff9b2f364b2445456f8a481c Mon Sep 17 00:00:00 2001 From: Salvydas Lukosius Date: Tue, 19 May 2026 01:29:38 +0100 Subject: [PATCH 2/2] chore: sha-pin actions, metrics branch, zsh-ci workflow, CODEOWNERS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SHA-pin all remaining mutable action references: - actions/checkout v4.2.2 โ†’ v6.0.2 (de0fac2e) in lychee, gh-push, pages-deployment, rclone template - pnpm/action-setup v4.1.0 โ†’ v6.0.8 (0e279bb9) in pages-deployment - actions/setup-node v4.3.0 โ†’ v6.4.0 (48b55a01) in pages-deployment - cloudflare/pages-action v1.5.0 โ†’ pinned SHA (f0a1cd58) - peaceiris/actions-gh-pages v4 โ†’ v4.1.0 (84c30a85) in gh-push - peter-evans/create-issue-from-file v4 โ†’ v6.0.0 (fca9117c) in lychee - actions/cache v3 โ†’ v5.0.5 (27d5ce7f) in lychee - lowlighter/metrics v3.34 mutable tag โ†’ explicit SHA (65836723) in pagespeed - z-shell/.github/actions/rclone v1.0.0 mutable tag โ†’ SHA (6443afd4) Fix pages-deployment: - Rename .yaml โ†’ .yml for naming consistency - Fix hardcoded node-version: 18 โ†’ lts/* - Add top-level permissions: {} block Fix metrics pipeline (stop committing SVGs to main): - Add committer_branch: metrics to all lowlighter/metrics steps across activity_metrics, metrics, pagespeed, and reader workflows - gh-push now checks out the dedicated metrics branch before deploying to gh-pages - Add permissions: {} + job-level contents: write to activity_metrics, metrics, and reader workflows Add reusable Zsh CI workflow: - .github/workflows/zsh-ci.yml: workflow_call entrypoint - workflow-templates/zsh-ci.yml: starter workflow referencing it - workflow-templates/zsh-ci.properties.json: template metadata Fix dependabot.yml: - Remove stale Docker entries for deleted actions - Change schedule from daily to weekly Add .github/CODEOWNERS routing reviews to @z-shell/tsc Update workflow-templates/rclone-action.yml with SHA pins --- .github/CODEOWNERS | 16 +++++ .github/dependabot.yml | 19 +----- .github/workflows/activity_metrics.yml | 8 +++ .github/workflows/gh-push.yml | 8 +-- .github/workflows/lychee.yml | 13 ++-- .github/workflows/metrics.yml | 14 +++- ...s-deployment.yaml => pages-deployment.yml} | 13 ++-- .github/workflows/pagespeed.yml | 3 +- .github/workflows/reader.yml | 11 ++- .github/workflows/zsh-ci.yml | 68 +++++++++++++++++++ workflow-templates/rclone-action.yml | 18 ++--- workflow-templates/zsh-ci.properties.json | 9 +++ workflow-templates/zsh-ci.yml | 19 ++++++ 13 files changed, 177 insertions(+), 42 deletions(-) create mode 100644 .github/CODEOWNERS rename .github/workflows/{pages-deployment.yaml => pages-deployment.yml} (71%) create mode 100644 .github/workflows/zsh-ci.yml create mode 100644 workflow-templates/zsh-ci.properties.json create mode 100644 workflow-templates/zsh-ci.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..cf893b0c7 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,16 @@ +# Default: TSC reviews everything +* @z-shell/tsc + +# Composite actions +/actions/ @z-shell/tsc + +# Workflow files and templates +/.github/workflows/ @z-shell/tsc +/workflow-templates/ @z-shell/tsc + +# Org profile +/profile/ @z-shell/tsc + +# Configuration +/.trunk/ @z-shell/tsc +/renovate-config.json @z-shell/tsc diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c07e6836b..d8374ba77 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,27 +1,10 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - version: 2 updates: - package-ecosystem: "github-actions" directory: "/" - schedule: - interval: "daily" - - package-ecosystem: "docker" - directory: "/actions/rclone/" - schedule: - interval: "weekly" - - package-ecosystem: "docker" - directory: "/actions/verify-pr-labels/" schedule: interval: "weekly" - package-ecosystem: "docker" - directory: "/actions/mirror/" - schedule: - interval: "weekly" - - package-ecosystem: "docker" - directory: "/actions/rebase/" + directory: "/actions/rclone/" schedule: interval: "weekly" diff --git a/.github/workflows/activity_metrics.yml b/.github/workflows/activity_metrics.yml index 63a7e2dd0..5f4b6eb3a 100644 --- a/.github/workflows/activity_metrics.yml +++ b/.github/workflows/activity_metrics.yml @@ -9,10 +9,14 @@ on: branches: [main] paths: [.github/workflows/activity_metrics.yml] +permissions: {} + jobs: metrics-activity: runs-on: ubuntu-latest timeout-minutes: 30 + permissions: + contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -30,6 +34,7 @@ jobs: token: ${{ secrets.ORG_TOKEN }} base: "" user: ${{ github.repository_owner }} + committer_branch: metrics plugin_projects: yes plugin_projects_descriptions: yes plugin_projects_limit: 10 @@ -39,6 +44,7 @@ jobs: token: ${{ secrets.ORG_TOKEN }} user: ${{ github.repository_owner }} base: "" + committer_branch: metrics template: repository repo: zi plugin_people: yes @@ -49,6 +55,7 @@ jobs: token: ${{ secrets.ORG_TOKEN }} user: ${{ github.repository_owner }} base: "" + committer_branch: metrics template: repository repo: wiki plugin_people: yes @@ -59,6 +66,7 @@ jobs: token: ${{ secrets.ORG_TOKEN }} user: ${{ github.repository_owner }} base: "" + committer_branch: metrics template: repository repo: F-Sy-H plugin_people: yes diff --git a/.github/workflows/gh-push.yml b/.github/workflows/gh-push.yml index 6fa7550f8..b78cbede7 100644 --- a/.github/workflows/gh-push.yml +++ b/.github/workflows/gh-push.yml @@ -24,13 +24,13 @@ jobs: contents: write pages: write steps: - - name: "โคต๏ธ Check out code from GitHub" - uses: actions/checkout@v4.2.2 + - name: "โคต๏ธ Check out metrics branch" + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + ref: metrics fetch-depth: 0 - name: "๐Ÿš€ Deploy Metrics to GitHub Pages" - if: github.ref == 'refs/heads/main' - uses: peaceiris/actions-gh-pages@v4 + uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: gh-pages diff --git a/.github/workflows/lychee.yml b/.github/workflows/lychee.yml index 1d7c0f158..b205daf3f 100644 --- a/.github/workflows/lychee.yml +++ b/.github/workflows/lychee.yml @@ -20,17 +20,22 @@ on: - "**.mdx" - "**.html" +permissions: {} + jobs: links-check: runs-on: ubuntu-latest + permissions: + contents: read + issues: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: "๐Ÿ“ค Restore cache" id: restore-cache - uses: actions/cache/restore@v3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: .lycheecache key: cache-lychee-${{ github.sha }} @@ -48,7 +53,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} - name: "๐Ÿ“ฅ Save cache" - uses: actions/cache/save@v3 + uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 if: always() with: path: .lycheecache @@ -56,7 +61,7 @@ jobs: - name: "๐Ÿ”– Create Issue From File" if: env.lychee_exit_code != 0 - uses: peter-evans/create-issue-from-file@v4 + uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0 with: title: " ๐Ÿ“ข Link Checker Report" content-filepath: ./.github/LINKS_REPORT.md diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml index 7937c2e39..0929df317 100644 --- a/.github/workflows/metrics.yml +++ b/.github/workflows/metrics.yml @@ -1,5 +1,6 @@ --- name: "๐ŸŒ€ Z Metrics" + on: schedule: - cron: "02 02 * * */2" @@ -8,11 +9,15 @@ on: paths: [.github/workflows/metrics.yml] workflow_dispatch: {} +permissions: {} + jobs: metrics: runs-on: ubuntu-latest timeout-minutes: 30 environment: metrics + permissions: + contents: write concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -25,18 +30,20 @@ jobs: wiki_followup_svg: metrics/plugin/followup/wiki_followup.svg f-sy-h_followup_svg: metrics/plugin/followup/f-sy-h_followup.svg steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6 with: filename: ${{ env.metrics_svg }} token: ${{ secrets.ORG_TOKEN }} user: ${{ github.repository_owner }} + committer_branch: metrics base: header - uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6 with: filename: ${{ env.repositories_metrics_svg }} token: ${{ secrets.ORG_TOKEN }} user: ${{ github.repository_owner }} + committer_branch: metrics base: repositories - uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6 with: @@ -44,6 +51,7 @@ jobs: token: ${{ secrets.ORG_TOKEN }} base: "" user: ${{ github.repository_owner }} + committer_branch: metrics plugin_stargazers: true plugin_stargazers_charts: no plugin_stargazers_worldmap: yes @@ -54,6 +62,7 @@ jobs: token: ${{ secrets.ORG_TOKEN }} base: "" user: ${{ github.repository_owner }} + committer_branch: metrics plugin_followup: yes plugin_followup_indepth: yes - uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6 @@ -63,6 +72,7 @@ jobs: token: ${{ secrets.ORG_TOKEN }} user: ${{ github.repository_owner }} base: header, activity,community,repositories + committer_branch: metrics repo: zi plugin_followup: yes - uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6 @@ -72,6 +82,7 @@ jobs: token: ${{ secrets.ORG_TOKEN }} user: ${{ github.repository_owner }} base: header, activity,community,repositories + committer_branch: metrics repo: wiki plugin_followup: yes - uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6 @@ -81,5 +92,6 @@ jobs: token: ${{ secrets.ORG_TOKEN }} user: ${{ github.repository_owner }} base: header, activity,community,repositories + committer_branch: metrics repo: f-sy-h plugin_followup: yes diff --git a/.github/workflows/pages-deployment.yaml b/.github/workflows/pages-deployment.yml similarity index 71% rename from .github/workflows/pages-deployment.yaml rename to .github/workflows/pages-deployment.yml index 5c74ad55e..1aff6dc86 100644 --- a/.github/workflows/pages-deployment.yaml +++ b/.github/workflows/pages-deployment.yml @@ -1,10 +1,13 @@ --- name: "๐Ÿ›ณ Deploy CloudFlare Pages" + on: push: branches: [main] workflow_dispatch: {} +permissions: {} + jobs: deploy: name: ๐Ÿ›ณ Deploying @@ -19,20 +22,20 @@ jobs: cancel-in-progress: true steps: - name: "โคต๏ธ Check out code from GitHub" - uses: actions/checkout@v4.2.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 - name: "๐Ÿ“ฆ Setup pnpm" - uses: pnpm/action-setup@v4.1.0 + uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 - name: "โŽ” Setup node" - uses: actions/setup-node@v4.3.0 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: 18 + node-version: lts/* cache: "pnpm" - name: "๐Ÿ— Build" run: pnpm install --prod && pnpm run build - name: "๐Ÿš€ Publish" - uses: cloudflare/pages-action@v1.5.0 + uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1.5.0 with: projectName: "zsh" directory: "build" diff --git a/.github/workflows/pagespeed.yml b/.github/workflows/pagespeed.yml index 98abaf62c..5ea9c2e41 100644 --- a/.github/workflows/pagespeed.yml +++ b/.github/workflows/pagespeed.yml @@ -23,11 +23,12 @@ jobs: pagespeed_svg: metrics/plugin/pagespeed/detailed.svg pagespeed_url: ${{ secrets.PAGESPEED_TEST_URL }} steps: - - uses: lowlighter/metrics@v3.34 + - uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6 # v3.34 with: filename: ${{ env.pagespeed_svg }} token: NOT_NEEDED base: "" + committer_branch: metrics plugin_pagespeed: yes plugin_pagespeed_pwa: yes plugin_pagespeed_detailed: no diff --git a/.github/workflows/reader.yml b/.github/workflows/reader.yml index 24430212c..212cbf0e3 100644 --- a/.github/workflows/reader.yml +++ b/.github/workflows/reader.yml @@ -1,3 +1,4 @@ +--- name: "๐ŸŒ€ Z Reader" on: @@ -8,10 +9,14 @@ on: paths: [.github/workflows/reader.yml] workflow_dispatch: {} +permissions: {} + jobs: content-metrics: runs-on: ubuntu-latest timeout-minutes: 30 + permissions: + contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -25,12 +30,13 @@ jobs: dev_tag_zsh_svg: metrics/plugin/rss/dev.tag.zsh.rss.svg dev_tag_zsh_url: https://dev.to/feed/tag/zsh steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - uses: lowlighter/metrics@65836723097537a54cd8eb90f61839426b4266b6 with: filename: ${{ env.zsh_activity_svg }} token: NOT_NEEDED base: "" + committer_branch: metrics plugin_rss: yes plugin_rss_source: ${{ env.zsh_activity_url }} plugin_rss_limit: 2 @@ -39,6 +45,7 @@ jobs: filename: ${{ env.tweets_svg }} token: NOT_NEEDED base: "" + committer_branch: metrics plugin_tweets: yes plugin_tweets_token: ${{ secrets.TWITTER_BEARER_TOKEN }} plugin_tweets_attachments: no @@ -48,6 +55,7 @@ jobs: filename: ${{ env.dev_feed_zshell_svg }} token: NOT_NEEDED base: "" + committer_branch: metrics plugin_rss: yes plugin_rss_source: ${{ env.dev_feed_zshell_url }} plugin_rss_limit: 2 @@ -56,6 +64,7 @@ jobs: filename: ${{ env.dev_tag_zsh_svg }} token: NOT_NEEDED base: "" + committer_branch: metrics plugin_rss: yes plugin_rss_source: ${{ env.dev_tag_zsh_url }} plugin_rss_limit: 2 diff --git a/.github/workflows/zsh-ci.yml b/.github/workflows/zsh-ci.yml new file mode 100644 index 000000000..e4534fcc7 --- /dev/null +++ b/.github/workflows/zsh-ci.yml @@ -0,0 +1,68 @@ +--- +name: Zsh CI + +on: + workflow_call: + inputs: + zsh-version: + description: Zsh version to install ("latest" or a semver string). + required: false + type: string + default: latest + run-zcompile: + description: Run zcompile on all .zsh files in addition to zsh -n. + required: false + type: boolean + default: false + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + zsh-syntax: + name: Zsh syntax check + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Set up Zsh + uses: z-shell/.github/actions/setup-zsh@main + with: + version: ${{ inputs.zsh-version }} + + - name: Run zsh -n + shell: bash + run: | + mapfile -d '' files < <(find . -type d -name '.git' -prune -o -type f -name '*.zsh' -print0) + if [[ ${#files[@]} -eq 0 ]]; then + echo "No .zsh files found โ€” nothing to check." + exit 0 + fi + failed=0 + for f in "${files[@]}"; do + if ! zsh -n "$f" 2>&1; then + echo "::error file=$f::zsh -n syntax check failed" + failed=1 + fi + done + exit "$failed" + + - name: Run zcompile + if: inputs.run-zcompile + shell: bash + run: | + mapfile -d '' files < <(find . -type d -name '.git' -prune -o -type f -name '*.zsh' -print0) + failed=0 + for f in "${files[@]}"; do + if ! zsh -fc 'zcompile -- "$1"' zsh "$f" 2>&1; then + echo "::error file=$f::zcompile failed" + failed=1 + fi + done + exit "$failed" diff --git a/workflow-templates/rclone-action.yml b/workflow-templates/rclone-action.yml index 7f7d16a8c..eca26b912 100644 --- a/workflow-templates/rclone-action.yml +++ b/workflow-templates/rclone-action.yml @@ -3,13 +3,15 @@ name: "๐Ÿ”„ Rclone" # Working examples: # https://github.com/z-shell/wiki/blob/main/.github/workflows/rclone.yml # https://github.com/z-shell/zi-src/blob/main/.github/workflows/rclone-action.yml + on: push: paths: - # Paths which will tigger workflow - "static/**" workflow_dispatch: {} +permissions: {} + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -20,24 +22,24 @@ jobs: #if: github.repository == 'org-or-user/repository-name' runs-on: ubuntu-latest environment: rclone + permissions: + contents: read env: - # Set paths to be used as arguments to pass for rclone. # Source path (some/path/to/source) local_path: "" - # Remote path (remote:some/remote/path + # Remote path (remote:some/remote/path) remote_path: "" steps: - name: "โคต๏ธ Check out code from GitHub" - uses: actions/checkout@v3 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: "โซ Run rclone" - uses: z-shell/.github/actions/rclone@v1.0.0 + uses: z-shell/.github/actions/rclone@6443afd4e80c4ad1f684843d6ccd0d683dc47dbc # v1.0.0 with: # The RCLONE_CONFIG secret must be set to set up for rclone (required) config: ${{ secrets.RCLONE_CONFIG }} - # Pass any argumets supported by rclone (required) + # Pass any arguments supported by rclone (required) args: "sync ${{ env.local_path }} ${{ env.remote_path }}" # Set custom location for rclone configuration file (optional) - # Will try to detect the default location using rclone. #config-file: "" - # Verbose debugging and logging or carry on, but do quit on errors (optional) + # Verbose debugging and logging (optional) debug: false diff --git a/workflow-templates/zsh-ci.properties.json b/workflow-templates/zsh-ci.properties.json new file mode 100644 index 000000000..f5e36f126 --- /dev/null +++ b/workflow-templates/zsh-ci.properties.json @@ -0,0 +1,9 @@ +{ + "name": "Zsh CI", + "description": "Runs zsh -n syntax check (and optional zcompile) on all .zsh files using the shared z-shell/.github reusable workflow.", + "iconName": "z-shell", + "categories": ["CI", "Shell"], + "filePatterns": [ + ".*\\.zsh$" + ] +} diff --git a/workflow-templates/zsh-ci.yml b/workflow-templates/zsh-ci.yml new file mode 100644 index 000000000..12f65d7c4 --- /dev/null +++ b/workflow-templates/zsh-ci.yml @@ -0,0 +1,19 @@ +--- +name: Zsh CI + +on: + push: + branches: [$default-branch] + paths: + - "**.zsh" + pull_request: + branches: [$default-branch] + paths: + - "**.zsh" + workflow_dispatch: {} + +jobs: + zsh-ci: + uses: z-shell/.github/.github/workflows/zsh-ci.yml@main + with: + run-zcompile: false