Skip to content

Avoid linking the same issues#32

Merged
mtodor merged 2 commits intomainfrom
mtodor/fix-same-issue-links
Nov 14, 2024
Merged

Avoid linking the same issues#32
mtodor merged 2 commits intomainfrom
mtodor/fix-same-issue-links

Conversation

@mtodor
Copy link
Copy Markdown

@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
Comment thread main.go Outdated
Co-authored-by: Marcin Owsiany <porridge@redhat.com>
@mtodor mtodor merged commit 5b8bdf4 into main Nov 14, 2024
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