The GitHub Enterprise Server Dashboard is a sample implementation of a dashboard for GitHub Enterprise Server. It provides server statistics and collects aggregate usage data from your GitHub Enterprise Server instance, allowing you to better anticipate the needs of your organization, understand how your team works, and demonstrate the value you get from GitHub Enterprise Server.
- Collect and display server statistics for GitHub Enterprise Server
- Aggregate usage data for repositories, issues, pull requests, and more
- Gain insights into your enterprise server's usage and user dynamics
- Show the information of GitHub Enterprise Server
To install and run the GitHub Enterprise Server Dashboard, follow these steps:
- Fork the repository to your desired organization to host the dashboad with GitHub Pages
- Set GitHub Personal Access Token in the GitHub Action's secret
GH_PAT
- Set the Enterprise Name in the GitHub Action's secret
ENTERPRISE_NAME
- Then, GitHub Actions run the workflow and dashboard is deployed to the GitHub Pages
- Access the dashboard page in GitHub Pages
To build the GitHub Enterprise Server Dashboard, follow these steps:
- Install packages
npm install
- Copy the downloaded server statistics json file
cp <YOUR_DOWNLOADED_FILE> ./stats-export.json
- Run conversion script
npm run convert-data stats-export.json
- Run the server
npm start
To fork this repository and run in your environment, follow these steps:
- Fork the repository
- Set your PAT with
read:enterprise
permission to GitHub ActionsGH_SECRET
- Set your enterprise name to GitHub Actions Secret
ENTERPRISE_NAME
- Run the GitHub Actions workflow manually (or you can customize the condition)
Sample condition
on:
schedule:
# Run the process at 02:00 in UTC
- cron: '0 2 * * 1'
We welcome contributions to the GitHub Enterprise Server Dashboard project. To contribute, please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/new-feature
- Make your changes and commit them:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature/new-feature
- Create a new pull request
This project is licensed under the MIT License.
We would like to thank the GitHub community for their support and contributions to this project.