docs/src/content/docs/configuration/layout/pr.mdx
import { Aside, Code } from "@astrojs/starlight/components"; import NerdFontIcon from "../../../../components/NerdFontIcon.astro";
You can define how a PR section displays items in its table by setting options for the available columns. You can define a column's width, whether it grows to fill available space, and whether the column should be visible at all.
Note that if the length of a column's text exceeds the defined column width, the view
truncates the column's text to two characters shorter than the column's width. For example, if
the width is 6, gh-dash displays as gh-d.
Column headings have their color defined by the theme.colors.text.primary setting.
By default, PR views display the following columns in the order they're listed:
updatedAt with a width of 7 columns.state with a width of 3 columns.repo with a width of 15 columns.title, set to grow to fill available space.author with a width of 10 columns.numComments with a width of 3 columns.reviewStatus with a width of 3 columns.ci with a width of 3 columns.lines with a width of 16 columns.updatedAt:
width: 7
repo:
width: 15
title:
grow: true
author:
width: 15
assignees:
width: 20
hidden: true
base:
width: 15
hidden: true
lines:
width: 16
| Property | Type | Default |
|---|---|---|
updatedAt | yaml | <Code code={width: 7} lang="yaml" frame="none"/> |
This column displays how recently the PR was updated. The entry shows the time elapsed
since the last update, like 1h or 3d.
The heading for this column is <NerdFontIcon icon="nf-oct-clock"/>
| Property | Type | Default |
|---|---|---|
state | yaml | <Code code={width: 3} lang="yaml" frame="none"/> |
This column displays the PR's state as one of the following icons:
#42a0fa.theme.colors.text.faint.#a371f7.#c38080.This heading for this column is <NerdFontIcon icon="nf-dev-git_merge"/>
| Property | Type | Default |
|---|---|---|
repo | yaml | <Code code={width: 15} lang="yaml" frame="none"/> |
This column displays the name of the repository the PR is filed in. The entry shows the
name of the repository without the owner, like gh-dash for the
https://github.com/dlvhdr/gh-dash repository.
The heading for this column is <NerdFontIcon icon="nf-oct-repo"/>
| Property | Type | Default |
|---|---|---|
title | yaml | <Code code={width: 15\ngrow: true} lang="yaml" frame="none"/> |
This column displays the PR's number followed by its title. This column is always displayed
unless you set hidden to false. By default, it grows to fill the available space
in the terminal after accounting for other column widths.
The heading for this column is Title.
The theme.colors.text.primary setting defines the issue number's color.
| Property | Type | Default |
|---|---|---|
author | yaml | <Code code={width: 15} lang="yaml" frame="none"/> |
This column displays the username for the person who created the PR.
The heading for this column is Author.
| Property | Type | Default |
|---|---|---|
authorIcon | yaml | <Code code={width: 3} lang="yaml" frame="none"/> |
This setting affects display of the role icon for the person who created the PR.
| Property | Type | Default |
|---|---|---|
assignees | yaml | <Code code={width: 20\nhidden: true} lang="yaml" frame="none"/> |
This column displays the usernames for the people assigned to the PR.
The heading for this column is Assignees.
| Property | Type | Default |
|---|---|---|
base | yaml | <Code code={width: 15\nhidden: true} lang="yaml" frame="none"/> |
This column displays the base branch the PR is targeting, like main.
The heading for this column is Base.
| Property | Type | Default |
|---|---|---|
numComments | yaml | <Code code={width: 3} lang="yaml" frame="none"/> |
This column displays the number of comments left on a PR. This is a sum of the direct comments and the number of review threads.
The heading for this column is <NerdFontIcon icon="nf-fa-comments_o"/>.
| Property | Type | Default |
|---|---|---|
reviewStatus | yaml | <Code code={width: 3} lang="yaml" frame="none"/> |
This column displays the review status of a PR as an icon:
theme.colors.text.faint.theme.colors.text.primary.theme.colors.text.warning.The heading for this column is <NerdFontIcon icon="nf-md-account_check_outline"/>.
| Property | Type | Default |
|---|---|---|
ci | yaml | <Code code={width: 3} lang="yaml" frame="none"/> |
This column displays the CI status of a PR as an icon:
theme.colors.text.faint.theme.colors.text.success].theme.colors.text.warning.The heading for this column is <NerdFontIcon icon="nf-oct-checklist"/>
| Property | Type | Default |
|---|---|---|
lines | yaml | <Code code={width: 16} lang="yaml" frame="none"/> |
This column displays the line changes for a PR. The column represents the changes as
<added> / -<removed>. For example, 66 / -46 indicates 66 lines added and 46
lines removed.
The heading for this column is <NerdFontIcon icon="nf-oct-diff"/>.