You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a bot that extracts the JSON of models from code blocks in GH issues and then adds them to the database when they are valid and approved. This will allow people to make changes to the project without ever checking out the code or making a PR.
The bot should work as follows:
When someone makes an issue, it will scan the issue's body for a special code block containing the diff for the model DB. If none at found, the bot won't do anything.
The bot will exact the diff and validate it. Validation works by applying the diff to a CI workflow-local version of the database and then running the usual DB validation. (Validation has to be re-run every time the issue comment is edited and every time the database is changed.)
If checks fail, the bot will post a comment (or update its previous one) explaining the problems validation found. The bot will add a "Needs changes" label to the issue and remove any other bot-related labels.
If checks succeed, the bot will post a comment (or update its previous one) saying that the change is ready to be applied. The bot will add a "Needs review" label to the issue and remove any other bot-related labels.
A human reviewer can now review the changes and either request further changes or accept the change. If the reviewer accepts the changes, they will add the "Accepted" label to the issue.
The bot listens for label changes and sees the "Accepted" label. It will run validation once more (just to be sure), and upon success it will make a commit directly into the main branch with the changes applied. The issue creator will be tagged as the co-author of the commit.
Having good validation will be important. Ideally, we will get validation to the point where it covers all (simple) mistakes people make.
The text was updated successfully, but these errors were encountered:
Add a bot that extracts the JSON of models from code blocks in GH issues and then adds them to the database when they are valid and approved. This will allow people to make changes to the project without ever checking out the code or making a PR.
The bot should work as follows:
Having good validation will be important. Ideally, we will get validation to the point where it covers all (simple) mistakes people make.
The text was updated successfully, but these errors were encountered: