Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Allow relative `current` releases

未关闭
#1,246 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
github-actions, nodejs, typescript
领域
ci-cd, devops, tooling

调研方向

首先跟踪 node-version 现有的相对 LTS 处理方式,并确定 current/-N 应如何相对于最新 release 进行解析。明确 e=current/-3  lts/* 这样的范围组合是否在范围内,然后找出相关测试并更新它们以覆盖 release 变更;该 issue 未指定任何文件或测试。

由索引模型根据 Issue 内容生成。

描述

feature request

Description:

The same way it's possible to define relative LTS versions in node-version (like lts/-1), I want to be able to use relative versions from latest one (like current/-3).

Justification:

I want to support only versions with at least 1 year of maintenance in the foresee. I've seen maintenance dates match for current version, so current/-3 would match up to 3 versions older for current ones, so for example when v24 gets released now in April, -3 would be Node.js v21, not testing on v20 that will be out of maintenance on April 2026.

Additionally, I would want some basic ranges combinations similar to browserlist, so something like >=current/-3 & lts/* when Node.js v24 gets published would resolve to Node.js v22 instead of v21, that's the first LTS newer than current/-3, but maybe that would be in another proposal.

Are you willing to submit a PR?

Yes, I could do that if there's interest.

主要语言
TypeScript
星标
5k
派生
1.7k
平均合并
4 天 22 小时
30 天内合并 PR
5

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

actions/setup-node 的其他 Issue

查看 actions/setup-node 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。