Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 16 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,22 @@
name: CI

permissions:
contents: read
pull-requests: read

on:
workflow_dispatch: {}
pull_request: {}
release:
types: [published]
push:
branches: [master]
pull_request:
branches: [master]
branches:
- master
- develop
- release/*
- feature/*
- hotfix/*

jobs:
test:
runs-on: default
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19

- name: Test
run: go test -v ./...

lint:
name: lint
runs-on: default
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
github-token: ${{secrets.GITHUB_TOKEN}}
only-new-issues: true
golang:
uses: UNIwise/workflows/.github/workflows/golang.yaml@master
secrets: inherit
with:
go-version: 1.19
golangci-lint-version: v1.61.0
14 changes: 14 additions & 0 deletions .github/workflows/documentation-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Docs

on:
workflow_dispatch: {}
pull_request:
paths:
- "wiki/**"

jobs:
markdown:
uses: UNIwise/workflows/.github/workflows/documentation.yaml@master
secrets: inherit
with:
sync: false # We don't want to sync documentation on pull requests
14 changes: 14 additions & 0 deletions .github/workflows/documentation-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Docs

on:
workflow_dispatch: {}
push:
branches:
- master
paths:
- "wiki/**"

jobs:
markdown:
uses: UNIwise/workflows/.github/workflows/documentation.yaml@master
secrets: inherit
1 change: 0 additions & 1 deletion .ship-it

This file was deleted.

39 changes: 0 additions & 39 deletions Jenkinsfile

This file was deleted.

31 changes: 18 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# Parrot

<p align="center">
<img alt="Parrot logo" src="assets/parrot_banner.svg" height="150"/>
</p>
![Parrot logo](assets/parrot_banner.svg){ height="150" }

<!--<p align="center">-->
<!--<img alt="Parrot logo" src="assets/parrot_banner.svg" height="150"/>-->
<!--</p>-->

<p align="center">
Parrot the <a href="http://poeditor.com/">POEditor</a> pull-through cache
</p>

<p align="center">
<a href="https://github.com/UNIwise/parrot/releases/latest"><img src="https://img.shields.io/github/v/release/UNIwise/parrot"></a>
<a href="https://github.com/UNIwise/parrot/releases/latest">
<img src="https://img.shields.io/github/v/release/UNIwise/parrot">
</a>
</p>
<p align="center">
<img src="https://api.stage.eu.wiseflow.io/badges/v1/namespace/parrot/deployment/parrot?text=stage">
Expand All @@ -19,15 +24,15 @@

This cache makes it possible to pull app translations directly from [POEditor](http://poeditor.com/) instead of compiling them into your app. This means no more re-builds every time translations are updated!

# Features
## Features

- **Battle tested**: The software is in active use on the WISEflow platform with high request rates daily.
- **All the formats**: Parrot can provide all formats supported by POEditor.
- **Cache choices**: Parrot comes with a Filesystem and Redis cache to facilitate single app deployments and highly distributed deployments.
- **OpenAPI**: The Parrot API has been documented in OpenAPI specification which can be found in the [doc/](/docs) directory.
- **Easy deployment**: A docker image and helm chart is provided.
- **Battle tested**: The software is in active use on the WISEflow platform with high request rates daily.
- **All the formats**: Parrot can provide all formats supported by POEditor.
- **Cache choices**: Parrot comes with a Filesystem and Redis cache to facilitate single app deployments and highly distributed deployments.
- **OpenAPI**: The Parrot API has been documented in OpenAPI specification which can be found in the [doc/](/docs) directory.
- **Easy deployment**: A docker image and helm chart is provided.

# Configuration
## Configuration

The server can be configured with a yaml configuration file specified with the `--config` option. Every configuration can be overridden with an environment variable, where dots are replaced by underscores, such that `API_TOKEN=xxx` will set the `api.token` value

Expand Down Expand Up @@ -55,11 +60,11 @@ The server can be configured with a yaml configuration file specified with the `
| prometheus.port | port to expose the prometheus metrics under | int | `9090` |
| api.token | secret token to authenticating against poeditor | string |

# API specification
## API specification

The REST API of Parrot is documented in the OpenAPI format. The specification file can be found here [docs/api.yml](docs/api.yml) and a Swagger UI is available here [uniwise.github.io/parrot](https://uniwise.github.io/parrot).

# License
## License

Parrot is available under the Apache 2 license.

Expand Down
23 changes: 0 additions & 23 deletions chart/parrot/.helmignore

This file was deleted.

15 changes: 0 additions & 15 deletions chart/parrot/Chart.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions chart/parrot/templates/NOTES.txt

This file was deleted.

62 changes: 0 additions & 62 deletions chart/parrot/templates/_helpers.tpl

This file was deleted.

77 changes: 0 additions & 77 deletions chart/parrot/templates/deployment.yaml

This file was deleted.

Loading