Update-project-version fails when a commit hash is used
Chưa có ai nhận issue nà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
Hướng nghiên cứu
Bắt đầu với phần triển khai update-project-action và workflow gọi nó trong .github/workflows/publish.yml, sau đó tái hiện lỗi bằng cách sử dụng lần chạy Actions được liên kết và các lệnh Git của lần chạy đó. Theo dõi cách một hash commit được phân giải thành base hoặc branch của pull request, bao gồm cách tiếp cận được đề xuất git branch -a --contains <commit>. Công việc được hoàn tất khi có thể tạo PR cập nhật phiên bản nếu đầu vào tham chiếu đến một hash commit.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Report
I ran update-project-version and it failed. We suspect it is because of using a commit hash and not a branch name.
Repro or Code Sample
I don't know why this failed for the couple of releases I did. I'm calling the update-project-action here.
Expected Behavior
Create a PR in the repo for bumping the project version.
Current Behavior
Failure. Here's some log info. See this run.
[0d9ef0bb-fabf-4858-99fb-2e3fcf7e0035 5b906c0] [319d5ab3ebc8637ee0a3bdd2c38de76c1b597fc0] chore: Update project ni.measurements.metadata.v1.proto to v0.1.0.dev4
Author: dixonjoel <38357562+dixonjoel@users.noreply.github.com>
1 file changed, 1 insertion(+), 1 deletion(-)
/usr/bin/git stash push --include-untracked
No local changes to save
/usr/bin/git rev-list --right-only --count 319d5ab3ebc8637ee0a3bdd2c38de76c1b597fc0...0d9ef0bb-fabf-4858-99fb-2e3fcf7e0035
1
/usr/bin/git -c protocol.version=2 fetch --no-tags --progress --no-recurse-submodules --force --depth=11 origin users/build/ni.measurements.metadata.v1.proto-update-project-version-319d5ab3ebc8637ee0a3bdd2c38de76c1b597fc0:refs/remotes/origin/users/build/ni.measurements.metadata.v1.proto-update-project-version-319d5ab3ebc8637ee0a3bdd2c38de76c1b597fc0
fatal: couldn't find remote ref users/build/ni.measurements.metadata.v1.proto-update-project-version-319d5ab3ebc8637ee0a3bdd2c38de76c1b597fc0
Pull request branch 'users/build/ni.measurements.metadata.v1.proto-update-project-version-319d5ab3ebc8637ee0a3bdd2c38de76c1b597fc0' does not exist yet.
/usr/bin/git checkout --progress -B users/build/ni.measurements.metadata.v1.proto-update-project-version-319d5ab3ebc8637ee0a3bdd2c38de76c1b597fc0 0d9ef0bb-fabf-4858-99fb-2e3fcf7e0035 --
Possible Solution
@bkeryan suggests this:
I think it could use
git branch -a --contains
to find potential branches
it probably ought to try main first
Context
Your Environment
ni/python-actionsversion- Python version
- Ngôn ngữ chính
- Python
- Star
- 2
- Fork
- 0
- Merge trung bình
- 2 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
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 ni/python-actions
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
ni/python-actions#57 · 1 bình luận ·
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
ni/python-actions#39 · 2 bình luận ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ni/python-actions#38 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ni/python-actions#19 ·
-
bug
ni/python-actions#7 · 4 bình luận · 1 người được giao ·
Tất cả issue của ni/python-actions
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
zostera/django-bootstrap4#894 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
use-agent-os/agent-os#3276 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#117848 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
zilliztech/memsearch#759 ·