assets option is ambiguous with git plugin assets option
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- git, github, javascript
Hướng nghiên cứu
Bắt đầu bằng cách lần theo cách các plugin git và github phân giải tùy chọn assets cấp cao nhất dùng chung và cách các tùy chọn riêng của plugin ghi đè tùy chọn đó. Xem xét hành vi cấu hình và tương thích hiện có trước khi quyết định cách các tên riêng biệt nên hoạt động. Hoàn thành có nghĩa là các assets của git commit và các assets của bản phát hành GitHub có thể được cấu hình độc lập, trong khi các cấu hình assets hiện có vẫn tiếp tục hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Both the git plugin and github plugin have a configuration option named assets. When building out a shareable configuration, It is preferable to omit configuration inline with the plugin and define as much as possible in the top level of the release config so they can be overridden when the configuration is extended.
// my-release-config/index.js
module.exports = {
npmPublish: false,
releaseRules: [...],
assets: ['package.json', '*.md', '!**/node_modules/**'], // <---- assets
changelogTitle: '## Changelog',
plugins: [
['@semantic-release/commit-analyzer', null],
['@semantic-release/release-notes-generator', null],
['@semantic-release/changelog', null]
['@semantic-release/npm', null],
['@semantic-release/git', null],
['@semantic-release/exec', null],
['@semantic-release/github', null]
]
}
This works rather well except when you use the git and github plugins together - the assets configuration is ambiguous meaning. In the above example, All .md files will be included in both the release commit, and the files attached to the github release. if the value needs to be different between the two plugins, you have to define the plugin configuration inline, which makes it difficult to change
// my-release-config/index.js
module.exports = {
npmPublish: false,
releaseRules: [...],
changelogTitle: '## Changelog',
plugins: [
['@semantic-release/commit-analyzer', null],
['@semantic-release/release-notes-generator', null],
['@semantic-release/changelog', null]
['@semantic-release/npm', null],
['@semantic-release/git', {
assets: ['package.json', '*.md', '!**/node_modules/**'] // <---- assets
}]
['@semantic-release/exec', null],
['@semantic-release/github', {
assets: ['dist/*.tgz', 'coverage/*.json'] // <---- assets
}]
]
}
This allows them to be different, But now you cannot really over ride these values individually with out modifying them both, or changing them in the actualy config package being exteded. Which mean people have to re-define the entire plugin change and re-create most of the default configuration shipped with the shared config. Which mostly defeats the purpose.
Ideally, these settings should be named differently to disambiguate them - gitCommitAssets and githubReleaseAssets.
Something to this effect. It could initially be alternate value to allow the existing assets value to work if defined like it currently does.
- Ngôn ngữ chính
- JavaScript
- Star
- 535
- Fork
- 150
- Merge trung bình
- 5 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của semantic-release/github
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
semantic-release/github#1297 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
semantic-release/github#1242 · 1 bình luận · 4 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
semantic-release/github#1103 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[@semantic-release/github] step fails with 404 error when trying to access non-existent PR # 1Có thể đã có người làm @sjh9714 đã nhận 31 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
semantic-release/github#1092 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
immutable releasesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
semantic-release/github#1082 · 5 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của semantic-release/github
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[quality] useFocusTrap's Shift+Tab wrap and non-Tab/non-Escape key arms are never driven end to endCó thể đã có người làm @hivecommons-hive đã nhận hôm nay. Đang mởagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31 quality testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[aw] Upgrade availableĐang mởagentic-workflows
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
githubnext/gh-aw-workshop#4220 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
JuliusBrussee/caveman#1189 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:low ready-for-dev
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OpenHands/extensions#738 ·
Maintainer thường phản hồi trong vòng 1 ngày