DerRockWolf / primate

Pluggable dashboard to make PRs from multiple sources on multiple repos visible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pr:mate

GoTemplate

Pluggable dashboard to make PRs from multiple sources on multiple repos visible.

This repo is currently WIP. Further docs will follow.

Development

The project uses make to make your life easier. If you're not familiar with Makefiles you can take a look at this quickstart guide.

Whenever you need help regarding the available actions, just use the following command.

make help

Setup

To get your setup up and running do the following.

  1. Install dart and flutter

  2. Install protoc-gen-dart:

    flutter pub global activate protoc_plugin

    This command recommends to add a location to your PATH, do this as instructed. (See also the next step.)

    It might be necessary to also install protoc_plugin via dart directly, by running:

    dart pub global activate protoc_plugin
  3. Add the .pub-cache/bin location to your PATH:

    export PATH="$PATH:$HOME/.pub-cache/bin"
    # or if on flutter it could also be sth like
    export PATH="$PATH":"$HOME/sdk/flutter/.pub-cache/bin"
  4. Setup everything else:

    make all

    This will initialize a git repo, download the dependencies in the latest versions and install all needed tools. If needed code generation will be triggered in this target as well.

  5. Add configuration for the backend service:

    cp configs/config_example.yaml config/config.yaml
    vi config/config.yaml

    pr:mate supports GitHub, Azure DevOps and BitBucket repositories. You can also use wildcards for repositories, like so:

    providers:
    - providerType: "github"
      repositories:
        - "brumhard/*"
      extraConfig:
        pat: "xxxxxxxxxx"

    The pat (Personal Access Token) needs to be created with the correct permissions.

    • GitHub: See the example for GitHub.
    • Azure DevOps: Your PAT needs the Code (Read) permission.
    • BitBucket: TODO

You're now ready to start developing!

Running

When developing the frontend, use regular flutter commands in the app folder:

cd app && flutter run

In order to have a backend service to develop against, use the following:

# build the backend
make build

# start the server
./out/bin/primate --config=configs/config.yaml

# in a separate terminal, start developing the frontend
flutter run

Test & lint

Run linting

make lint

Run tests

make test

About

Pluggable dashboard to make PRs from multiple sources on multiple repos visible.

License:MIT License


Languages

Language:Dart 56.1%Language:Go 29.7%Language:HTML 5.2%Language:Makefile 3.6%Language:Smarty 1.8%Language:Ruby 1.4%Language:Dockerfile 1.1%Language:Swift 0.4%Language:Shell 0.4%Language:Kotlin 0.2%Language:Objective-C 0.0%