Add a pull requests (open/closed) panel to a dashboard
In this milestone, you add a panel to your existing dashboard that displays GitHub pull requests data, including the count of open and closed pull requests over time.
Open your existing dashboard. Click Add in the top-right toolbar and select Visualization. If you don’t see an Add button, click Edit to enter edit mode first, then click Add > Visualization.
Click the data source dropdown and select your GitHub data source from the list. If you have multiple data sources, look for the one named after your GitHub connection.
If you see a New query editor banner with a Back to classic button, click Back to classic. The GitHub data source requires the classic query editor to show the Query Type dropdown.
In the query editor at the bottom of the screen, find the Query Type dropdown and choose Pull Requests.
Enter your GitHub organization name in the Owner field. For example,
grafana.Enter your repository name in the Repository field. For example,
grafana.In the Time Field dropdown, select Closed At.
Select Table as the visualization type.
In the Panel options on the right, enter a title for your panel in the Title field. For example,
GitHub Pull Requests Overview.Click Save dashboard. In the dialog that appears, click Save.
Click Back to dashboard to exit the panel editor and return to the dashboard view.
The panel now displays a Table visualization showing pull request trends over time.
In the next milestone, you’ll add a repository list panel to your dashboard.