run update.yaml every 12min
The job takes over 5 minutes most of the time anyway, so this might help us have GitHub actually schedule the job at the asked interval :)
Signed-off-by: Benjamin Cabé benjamin@zephyrproject.org
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
PR Dashboard
This set of scripts produces a static HTML page with an overview of the pull requests involving a specific user, fetching data from multiple repositories under a GitHub organization. It’s been developed for the Zephyr project specifically but it should be usable for any GitHub project.
Script architecture
This is meant to be called periodically from a GitHub workflow and the output served using GitHub pages. The basic workflow run as following:
update_zephyr_pr.py: produces a list of repositories based on the west manifest and callsupdate_pr.pywith the list. This step is optional, one could callupdate_pr.pywith a static list of repositories directly.update_pr.py: fetches the pull request data using the GitHub APIs and dump the raw content into a big cache file that can be used by other scripts to read the data without having to query the GitHub APIs again.crunch_data.py: reads the raw data and produces a new set of files that are suitable for the dashboard UI to be used directly.See the
.github/workflows/update.yamlfile for more details.Development and troubleshooting
Each of the scripts can run independently.
update_pr.pycan be called directly and only needs aGITHUB_TOKENenvironment variable to be setup with a valid API token. By default it only fetches a couple of fixed repositories.crunch_data.pycan be run using the cached data from the latest data set already served on GitHub, these can be fetched using thedownload_cache_datascript: