Skip to content

Save record order for annotation links when creating issues#1744

Merged
TingluoHuang merged 3 commits intoactions:mainfrom
konradpabjan:konradpabjan/annotation-links
Mar 14, 2022
Merged

Save record order for annotation links when creating issues#1744
TingluoHuang merged 3 commits intoactions:mainfrom
konradpabjan:konradpabjan/annotation-links

Conversation

@konradpabjan
Copy link
Copy Markdown
Contributor

Part of https://github.com/github/c2c-actions-checks/issues/52

The end goal of this change is to be able to link annotations to exact step and log lines from the run summary page

image

Right now they just point to the log page but we want to expand the exact step and scroll to the exact line that each annotation originates from when clicked on. We have the line number already via logFileLineNumber but we also need to save the step information

Tested this with

  • Annotations from pre steps
  • Annotations from post steps
  • Annotations from composite actions
  • Annotations from normal log lines

There was a potential problem with the timeline record order not being sequential so the numbers can go from something like 1,2,3,4,5,8,12,15 . However this is not a concern and we can reliably use the timeline record order as the step number since we have the same information saved already when we render steps in the Actions UI.

@konradpabjan konradpabjan requested a review from a team as a code owner March 10, 2022 19:05
Comment thread src/Runner.Worker/ExecutionContext.cs Outdated
Comment thread src/Runner.Worker/ExecutionContext.cs
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.

2 participants