[FEATURE] Handle missing labels from Dependabot PRs and automatically create them #310
Labels
comments
Related to commands that runs on comments
enhancement
New feature or request
gitauto
GitAuto label to trigger the app in a issue.
good first issue
Good for newcomers
hacktoberfest
Participation in the Hacktoberfest event
help wanted
Extra attention is needed
🏷️ labels
Labels related
pull request
Related to commands that runs on pull requests
question
Further information is requested
🛠 WIP
Work in progress
Description
When Dependabot creates automatic pull requests, it sometimes assigns labels that do not exist within the repository. As a result, Dependabot creates a comment indicating that the label is invalid. The goal is to process this comment, create the missing label(s) in the repository, and then assign them to the issue.
Tech Notes
Webhook Handling:
Label Creation and Assignment:
PHP Example Implementation:
Below is a PHP example using the
Request
class from theGuiBranco/Pancake
library to handle this feature:Resources:
Expected Outcome
Tech notes
Additional information
Example comment
The text was updated successfully, but these errors were encountered: