Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub label functionality #5

Open
PI-Victor opened this issue Jun 11, 2024 · 2 comments
Open

GitHub label functionality #5

PI-Victor opened this issue Jun 11, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@PI-Victor
Copy link
Member

PI-Victor commented Jun 11, 2024

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

  • The bot reacts to webhook PR events for github (open, reopen, update)
  • The bot reads the toml config in the root directory
  • The bot adds the labels defined in the config to the PR
@PI-Victor PI-Victor added the enhancement New feature or request label Jun 11, 2024
@PI-Victor PI-Victor self-assigned this Jun 11, 2024
Copy link

linear bot commented Jun 11, 2024

@PI-Victor
Copy link
Member Author

ref: #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants