dependent-issues 的安装和配置教程
2025-05-17 17:51:00作者:凌朦慧Richard
项目基础介绍
dependent-issues 是一个 GitHub Action,用于标记一个 Issue 或 Pull Request 依赖于另一个 Issue 或 Pull Request。这个工具支持跨仓库的依赖关系,使得跨项目协作更加容易。项目主要使用 TypeScript 编程语言。
项目使用的关键技术和框架
- GitHub Actions: 用于自动化您的软件开发工作流程。
- TypeScript: 项目的开发语言,提供了类型系统和编译时类型检查,使得代码更加健壮。
- Node.js: 运行时环境,用于执行 GitHub Action。
准备工作
在开始安装和配置 dependent-issues 前,请确保您已经满足以下条件:
- 您有一个 GitHub 账户并且已经创建了一个仓库。
- 您熟悉基本的 Git 操作。
- 您安装了 Node.js 和 npm(Node.js 包管理器)。
安装步骤
以下是在您的 GitHub 仓库中安装和配置 dependent-issues 的详细步骤:
步骤 1: 创建 GitHub 仓库
首先,确保您已经在 GitHub 上创建了一个新的仓库,并且已经克隆到本地。
git clone https://github.com/your-username/your-repository.git
cd your-repository
步骤 2: 添加 GitHub Action 文件
在您的仓库中创建一个新的 .github/workflows/dependent-issues.yml 文件。
touch .github/workflows/dependent-issues.yml
步骤 3: 配置 GitHub Action
编辑 .github/workflows/dependent-issues.yml 文件,添加以下内容:
name: Dependent Issues
on:
issues:
types: [opened, edited, closed, reopened]
pull_request_target:
types: [opened, edited, closed, reopened]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: z0al/dependent-issues@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_READ_TOKEN: ${{ secrets.GITHUB_READ_TOKEN }}
with:
label: dependent
check_issues: off
ignore_dependabot: off
keywords: 'depends on, blocked by'
comment: >
This PR/issue depends on:
{{ dependencies }}
By **[Dependent Issues](https://github.com/z0al/dependent-issues)** (🤖). Happy coding!
根据您的需求,您可以自定义 label、check_issues、ignore_dependabot、keywords 和 comment 字段。
步骤 4: 提交和推送更改
将更改保存到 .github/workflows/dependent-issues.yml 文件中,并提交到您的仓库。
git add .github/workflows/dependent-issues.yml
git commit -m "Add Dependent Issues GitHub Action"
git push origin main
完成以上步骤后,您的 GitHub 仓库就已经配置好了 dependent-issues Action,它将自动在您指定的条件下运行。
请注意,您可能需要根据您的具体需求调整上述步骤中的配置细节。在配置过程中遇到问题,可以查阅项目的 README 文档或 FAQ。
登录后查看全文
热门项目推荐
atomcodeClaude Code 的开源替代方案。连接任意大模型,编辑代码,运行命令,自动验证 — 全自动执行。用 Rust 构建,极致性能。 | An open-source alternative to Claude Code. Connect any LLM, edit code, run commands, and verify changes — autonomously. Built in Rust for speed. Get StartedRust0218
cann-learning-hubCANN 学习中心仓,支持在线互动运行、边学边练,提供教程、示例与优化方案,一站式助力昇腾开发者快速上手。Jupyter Notebook0139
uni-appA cross-platform framework using Vue.jsJavaScript09
GLM-5.2智谱开源 GLM-5.2,这是针对长文本任务的最新旗舰模型。相较于前代产品 GLM-5.1,它在长文本任务处理能力上实现了显著飞跃,并且首次在稳定的 100 万 token 上下文中提供这一能力。Jinja00
SwanLab⚡️SwanLab - an open-source, modern-design AI training tracking and visualization tool. Supports Cloud / Self-hosted use. Integrated with PyTorch / Transformers / LLaMA Factory / veRL/ Swift / Ultralytics / MMEngine / Keras etc.Python00
tiny-universe《大模型白盒子构建指南》:一个全手搓的Tiny-UniverseJupyter Notebook03
项目优选
收起
openEuler内核是openEuler操作系统的核心,既是系统性能与稳定性的基石,也是连接处理器、设备与服务的桥梁。
C
471
465
deepin linux kernel
C
32
16
Claude Code 的开源替代方案。连接任意大模型,编辑代码,运行命令,自动验证 — 全自动执行。用 Rust 构建,极致性能。 | An open-source alternative to Claude Code. Connect any LLM, edit code, run commands, and verify changes — autonomously. Built in Rust for speed.
Get Started
Rust
2.09 K
218
本项目是CANN提供的神经网络类计算算子库,实现网络在NPU上加速计算。
C++
700
1.4 K
暂无描述
Dockerfile
780
5.08 K
Ascend Extension for PyTorch
Python
758
968
本仓库是 Flutter SDK 与 Flutter Engine 的 OpenHarmony 适配版本,由 CPF-Flutter 团队维护。开发者可使用熟悉的 Flutter 技术栈开发 OpenHarmony 应用,3.35.7 及以后的适配版本可基于本仓库源码构建支持 OpenHarmony 的 Flutter Engine。
Dart
1.04 K
271
本项目是CANN提供的transformer类大模型算子库,实现网络在NPU上加速计算。
C++
880
2.03 K
MindQuantum is a general software library supporting the development of applications for quantum computation.
Python
183
111
旨在打造算法先进、性能卓越、高效敏捷、安全可靠的密码套件,通过轻量级、可剪裁的软件技术架构满足各行业不同场景的多样化要求,让密码技术应用更简单,同时探索后量子等先进算法创新实践,构建密码前沿技术底座!
C
1.11 K
682