Skip to content

This repository contains a Pull Request bot that monitors ArgoCD applications in a Kubernetes cluster. It automatically adds comments to pull requests with deployment preview URLs, metrics, logs, and QR codes. The bot integrates with GitHub APIs and ArgoCD to provide real-time deployment feedback.

Notifications You must be signed in to change notification settings

GlueOps/pull-request-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pr-bot

Requirements

  • You need a k8s cluster.
  • You need to deploy the resources below before to the glueops-core cluster
  • You need a git provider api token (Ex. Github Personal Access Token)
  • You need a captain domain
---
apiVersion: v1
kind: Secret
metadata:
  name: git-provider-api-token
type: Opaque
data:
  token: <base64 encoded github token>
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: glueops-captain-domain
data:
  captain_domain: <example: nonprod.tenant.glueopshosted.rocks>
---

Running the app

  • Ensure you have the following set in your .env file (at root foolder):
export GITHUB_TOKEN=<some-value>

For cloud specific setup (to be authenticated to the captain cluster), check here

  • Then run
python main.py

About

This repository contains a Pull Request bot that monitors ArgoCD applications in a Kubernetes cluster. It automatically adds comments to pull requests with deployment preview URLs, metrics, logs, and QR codes. The bot integrates with GitHub APIs and ArgoCD to provide real-time deployment feedback.

Topics

Resources

Stars

Watchers

Forks

Packages