Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.