Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zephyrproject-rtos/zephyr-merge-list
Zephyr Merge List
https://github.com/zephyrproject-rtos/zephyr-merge-list
Last synced: about 2 months ago
JSON representation
Zephyr Merge List
- Host: GitHub
- URL: https://github.com/zephyrproject-rtos/zephyr-merge-list
- Owner: zephyrproject-rtos
- License: apache-2.0
- Created: 2024-03-25T11:47:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T16:20:12.000Z (5 months ago)
- Last Synced: 2024-08-14T18:00:10.961Z (5 months ago)
- Language: Python
- Homepage: https://merge-list.zephyrproject.io/
- Size: 31.3 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zephyr merge list
This script produces a static HTML page with the list of PRs approved and ready
for merge for the main Zephyr project repository. This is meant to be run
periodically using GitHub actions and the output published using GitHub pages.## Running locally
First ensure that the required Python packages are installed:
```console
pip3 install -U -r requirements.txt
```Create a GitHub access token and set it in the `GITHUB_TOKEN` environment
variable.Make sure the output directory exists and run the script:
```console
$ mkdir public
$ ./merge_list.py
x-ratelimit-limit: 5000
x-ratelimit-remaining: 4999
x-ratelimit-reset: 1711729218
x-ratelimit-used: 1
x-ratelimit-resource: core
ignored milestones: ['future']
Latest tag: v3.6.0, freeze mode: False
fetch: 70900
fetch: 70883
...
$ ls public/
index.html
```## Resource usage
The script normally issues 3 RPC per PR (more if the mergeability status is
stale): one for fetching the pull request, one for the reviews and one for the
events. This can limit how often the script can be run before hitting the
GitHub ratelimit. To help identifying potential issues the current rpc quota is
logged at the start and end of the script.