Skip to content

ubq-testing/ubiquity-os-plugin-installer

 
 

Repository files navigation

UbiquityOS Plugin Installer

Users_nv_repos_0x4007_plugin-installer-gui_index html_manifest={%22name%22%22Start%20_%20Stop%22,%22description%22_%22Assign%20or%20un-assign%20yourself%20from%20an%20issue %22,%22ubiquity_listeners%22_ %22issue_comment created%22,%22issu

This was hand coded on an airplane ride with no internet.

Plan as of 16 September 2024

  • This only views the manifest you pass in
  • There is a hardcoded table header which is intended to be the origin URL of the manifest file.
  • Currently you need to pass in the manifest but we should pass in a URL and the UI should fetch the manifest from the URL instead (I had no network on my plane ride while building this.)

Add & Remove Config

  • A simple answer could be to create an API (GitHub Actions?) that just asks ChatGPT to refactor the .ubiquibot-config.yml and push the commit. Refactoring via LLM seems pretty straightforward in my experience.
  • The optimized answer is to parse the YML file, and target the config based on its URL/location. Then edit the YML file using traditional code and push the commit using the user's credentials (there is a "GitHub Sign In" button.)

Remarks

  • I think that the remove or add buttons should display intelligently. Given that I admin two organizations that use the bot, its a bit tricky. To start perhaps it makes sense to display both but we should figure a solution out thats simple to implement.

How To Use

Pass the manifest in the ?manifest= query parameter for the UI to parse it.

?manifest={%22name%22:%22Start%20|%20Stop%22,%22description%22:%22Assign%20or%20un-assign%20yourself%20from%20an%20issue.%22,%22ubiquity:listeners%22:[%22issue_comment.created%22,%22issues.assigned%22,%22pull_request.opened%22%20],%22commands%22:{%22start%22:{%22ubiquity:example%22:%22/start%22,%22description%22:%22Assign%20yourself%20to%20the%20issue.%22},%22stop%22:{%22ubiquity:example%22:%22/stop%22,%22description%22:%22Unassign%20yourself%20from%20the%20issue.%22}}}

The browser automatically URI encodes it:

{
    "name": "Start | Stop",
    "description": "Assign or un-assign yourself from an issue.",
    "ubiquity:listeners": [
        "issue_comment.created",
        "issues.assigned",
        "pull_request.opened"
    ],
    "commands": {
        "start": {
            "ubiquity:example": "/start",
            "description": "Assign yourself to the issue."
        },
        "stop": {
            "ubiquity:example": "/stop",
            "description": "Unassign yourself from the issue."
        }
    }
}
Example from command-start-stop/manifest.json

About

A GUI to install UbiquityOS plugins.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.0%
  • HTML 27.9%
  • CSS 26.1%