Branch name on the Action run page #190685
Replies: 4 comments 1 reply
-
|
Totally agree this would be a useful addition. A small workaround for now — you can see the branch name in the URL of the Action run page itself, it follows the pattern refs/heads/your-branch-name in the workflow trigger details. Also if you click "Workflow file" in the Run details section on the left, the branch context is sometimes visible there. |
Beta Was this translation helpful? Give feedback.
-
|
Workaround: Get the branch name without leaving the logs page While a sticky branch name in the UI would be a great improvement, here's a quick workaround that avoids losing your place in the logs:
gh run view 2872 --repo shine-sports/shine-websitethis prints the branch name (
the real fix would be for GitHub to expose the triggering branch as a sticky element in the job sidebar (next to the run number |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I understand your frustration—not seeing the branch name on the Actions run page, especially when scrolling through logs, makes it hard to maintain context. Currently, GitHub does not display the branch name in a persistent header on individual run pages. Current LimitationOn an Actions run page (e.g.,
For pull request runs, a link to the PR (e.g., WorkaroundsWhile not ideal, these temporary solutions may help:
Requesting the FeatureThis is a common request in the GitHub community. To help prioritize it:
Official DocumentationAs of now, the GitHub Actions documentation does not mention any setting to display the branch name on the run page. This confirms the feature is missing. I hope GitHub addresses this soon. In the meantime, the API method is the most reliable programmatic workaround. If you frequently need this, consider automating the API call with a small script or alias in your shell profile. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Code Search and Navigation
Body
It would be super-useful to have the branch name somewhere on the Action run page:
The way to do this currently is by clicking the link on the top left of the page to go back to the pull request where the branch name is listed at the top...
However, this link doesn't show when you're scrolled down and looking at your error logs. This means you lose your place in the pipeline output to get to it. Which is a bit annoying.
It would be great to have the branch name that the action is running on follow you as you scroll up and down the Action runs page.
Beta Was this translation helpful? Give feedback.
All reactions