cloudflavor / oscar

A GitOps automation bot for VCS misc tasks
Apache License 2.0
0 stars 0 forks source link

GitHub label functionality #5

Open PI-Victor opened 3 months ago

PI-Victor commented 3 months ago

Context

The bot needs to respond to webhook events for PRs and add the corresponding labels to the PR.

Description

When opening a new PR, a webhook will fire to the endpoint specified in the wrangler.toml file, in turn, the bot will read the repo config and will add the labels to the PR the way that they are configured.

The functionality can be copied from the pre-existing Rust implementation: https://github.com/cloudflavor/oscar/blob/216190bd53d361de35f9f035adcd9b0c72bfbfc1/src/lib.rs

a rough sketch of the config is

Acceptance Criteria

linear[bot] commented 3 months ago

CLO-36 GitHub label functionality

PI-Victor commented 3 months ago

ref: https://github.com/cloudflavor/oscar/pull/11