Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 在多个 GitHub 仓库间同步标签

[![Release](https://badges.ws/badge/release-v1.5.0--rc.1-blue?icon=github&iconColor=white)](https://github.com/matharts/sync-labels-action/releases/tag/v1.5.0-rc.1)
[![Release](https://badges.ws/badge/release-v1.5.0-blue?icon=github&iconColor=white)](https://github.com/matharts/sync-labels-action/releases/tag/v1.5.0)
[![Codecov](https://badges.ws/codecov/c/github/matharts/sync-labels-action/main?icon=codecov&iconColor=white)](https://app.codecov.io/gh/matharts/sync-labels-action)
[![Node.js 24](https://badges.ws/badge/Node.js-24-339933?icon=nodedotjs&iconColor=white)](action.yml)
[![License](https://badges.ws/badge/license-MIT-blue)](LICENSE)

MathArts Sync Labels 使用一份标签清单和一份所有权策略,同步组织内多个仓库的 GitHub 标签。Action 默认预览变更,只删除策略声明为组织所有的标签,并保留仓库自行维护的标签;也可以在没有 GitHub 凭据和网络访问的情况下离线校验配置。

当前候选版本为 `v1.5.0-rc.1`,用于仓库范围和离线校验演练。升级说明、兼容性保证和已知限制见[候选版本说明](docs/releases/v1.5.0-rc.1.md)。
当前稳定版本为 `v1.5.0`。升级说明、仓库范围规则、离线校验、兼容性保证和生产演练证据见 [v1.5.0 发布说明](docs/releases/v1.5.0.md)。

## 快速开始

Expand Down Expand Up @@ -78,7 +78,7 @@ safety:

### 4. 添加预览工作流

创建 `.github/workflows/preview-labels.yml`。以下示例固定到 `v1.5.0-rc.1` 候选基线的完整提交哈希
创建 `.github/workflows/preview-labels.yml`。以下示例固定到 `v1.5.0` 发布提交的完整提交哈希

```yaml
name: Preview organization labels
Expand All @@ -92,7 +92,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: matharts/sync-labels-action@efec2bf147ef88ab46ee87a7e57a4210d4725954
- uses: matharts/sync-labels-action@e26dd5eb3b05fbbaa93ccc2b1bbd3061db608cf6
with:
token: ${{ secrets.SYNC_LABELS_TOKEN }}
owner: ${{ github.repository_owner }}
Expand Down Expand Up @@ -157,7 +157,7 @@ repositories:

```yaml
- id: labels
uses: matharts/sync-labels-action@efec2bf147ef88ab46ee87a7e57a4210d4725954
uses: matharts/sync-labels-action@e26dd5eb3b05fbbaa93ccc2b1bbd3061db608cf6
with:
token: ${{ secrets.SYNC_LABELS_TOKEN }}
owner: ${{ github.repository_owner }}
Expand Down Expand Up @@ -255,7 +255,7 @@ Action 在读取任何仓库标签前校验两份配置。无效配置不会触

```yaml
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: matharts/sync-labels-action@efec2bf147ef88ab46ee87a7e57a4210d4725954
- uses: matharts/sync-labels-action@e26dd5eb3b05fbbaa93ccc2b1bbd3061db608cf6
with:
validate_only: "true"
```
Expand Down