Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACM CSUF OSS Bot

A GitHub bot for the ACM CSUF Open Source organization.

The bot provides an HTTP server for receiving GitHub webhooks and interacting with GitHub through the GitHub API.

Architecture

GitHub
   │
   │ Webhook
   ▼
┌─────────────────┐
│   Axum Server   │
├─────────────────┤
│     Handlers    │
├─────────────────┤
│    AppState     │
│    └─ Octocrab  │
└─────────────────┘
         │
         ▼
   GitHub REST API

The GitHub client is initialized once when the application starts and shared with handlers through Axum application state.

Getting started

If you have Nix (the greatest package manager to exist), go into the project and run

nix develop

If not, as of writing this make sure you have rustc and cargo installed.

Running

Start the server with:

cargo run

The server listens on:

127.0.0.1:8080

API

GET /

Basic application endpoint.

GET /health

Returns the health status of the server.

Example:

{
    "status": "ok",
    "message": "healthy"
}

GET /prget

Returns a fixed PR from acmcsuf.com as an example.

do you really think Im going to paste a a billion character output here?
(ok maybe its not a billion characters but its too much for here)

Development

Run tests with:

cargo test

Project Status

Note

This project is under active development for the ACM CSUF Open Source organization.

The API and internal architecture may change as additional GitHub automation is implemented.

License

This project is licensed under the MIT License. See LICENSE for the full license text.

Contributing

Contributions are welcome. Open an issue or submit a pull request with improvements, bug fixes, or new GitHub automation ideas.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages