Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid linking the same issues #32

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Avoid linking the same issues #32

merged 2 commits into from
Nov 14, 2024

Conversation

mtodor
Copy link

@mtodor mtodor commented Nov 13, 2024

This PR should fix errors where junit2jira will try to link an issue with itself.

An example: https://github.com/stackrox/stackrox/actions/runs/11819146919/job/32928382775?pr=13326

time="2024-11-13T14:49:43Z" level=info msg="Found 3 failed tests"
time="2024-11-13T14:49:44Z" level=info msg="Found issue. Creating a comment..." ID=ROX-22816 summary="github.com/stackrox/rox/pkg/grpc / Test_APIServerSuite FAILED"
time="2024-11-13T14:49:45Z" level=info msg="Found issue. Creating a comment..." ID=ROX-26980 summary="runtime.MemStats /  FAILED"
time="2024-11-13T14:49:46Z" level=info msg="Found issue. Creating a comment..." ID=ROX-26980 summary="runtime.MemStats /  FAILED"
time="2024-11-13T14:49:46Z" level=fatal msg="could not link issues: 1 error occurred:\n\t* You cannot link an issue to itself.: request failed. Please analyze the request body for more details. Status code: 400\n\n"
Error: Process completed with exit code 1.

@mtodor mtodor requested a review from porridge as a code owner November 13, 2024 15:44
@mtodor mtodor requested review from porridge and removed request for porridge November 13, 2024 15:44
main.go Outdated Show resolved Hide resolved
Co-authored-by: Marcin Owsiany <[email protected]>
@mtodor mtodor merged commit 5b8bdf4 into main Nov 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants