DEV Community

Maroun Maroun
Maroun Maroun

Posted on

GitHub Bash API

I'm writing Bash scripts for the GitHub API in Bash.

This repo aims to expose basic functions for using the GitHub API in Bash, without any dependency on GitHub CLI tools.

You can copy any of the functions and use it wherever you want. For example, in your own GitHub action script.


Each file aggregates functions that are relevant for the specific API.

For example, the script have functions that expose the Pull Requests API.

You can test each function by simply calling it inside the file. For example, to get the PRs count in some repository, you can call the prs_count function in the file, and then execute:

./ <token> <owner> <repo>

Which yields the number of PRs for the given repository.

I hope you find it useful! Your input is highly welcomed and appreciated.

Link to the repository:

Top comments (0)