From b6ab00b49b3205a4a2ce6ec019139363439900d1 Mon Sep 17 00:00:00 2001 From: Will Foster Date: Fri, 23 Feb 2024 17:23:06 +0000 Subject: [PATCH 1/2] Add CoC, change run example. * Add CoC from QUADS, Badfish * Add the run example to be immediately usable since users will likely already be in `../docker` pwd for container runs. --- CODE_OF_CONDUCT.md | 17 +++++++++++++++++ README.md | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..bbfd98b --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,17 @@ +wppt Project Code of Conduct +=============================== + +## Overview +We have a simple code of conduct derived from [George Carlin's](https://en.wikipedia.org/wiki/George_Carlin) character Rufus from [Bill and Ted's Excellent Adventure](https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure). + +### Guidelines + +#### Be Excellent to Each Other, and Party On. +* Always assume good intent in others. +* Focus on positivity and improvement. +* Don't forget to have fun. + +#### Don't be Bogus. +* Act in a courteous manner towards everyone. +* Don't totally ravage Oshman’s Sporting Goods. + diff --git a/README.md b/README.md index 6bbfcc6..2b09bb4 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,6 @@ $ podman build -t wppt . #### Running ```bash -$ podman run -it --rm -v /path/to/local/transformers/:/opt/wppt/transformers -p 5005:5005 wppt +$ podman run -it --rm -v ../wppt/transformers:/opt/wppt/transformers -p 5005:5005 wppt ``` From 7ac12b25bb0f6e15bffa1773a9ab6f72c80d509a Mon Sep 17 00:00:00 2001 From: Will Foster Date: Fri, 23 Feb 2024 17:26:37 +0000 Subject: [PATCH 2/2] Cleanup whitespace --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2b09bb4..b69ca66 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - + # Wppt #### Webhook Payload Proxy Transformer @@ -13,7 +13,7 @@ Some services/platforms don't provide an easy-to-use integration vehicle for tra ## How Does `wppt` Work? - Wppt leverages Flask dynamic routing. The endpoint is variable and defined via one or multiple yaml files. + Wppt leverages Flask dynamic routing. The endpoint is variable and defined via one or multiple yaml files. Based on the endpoint url, `wppt` parses all the yaml files stored on the `transformers` directory, and retrieves the outgoing webhook url and the translations. It then parses all the translations and converts the existing data from the incoming webhook into a new payload structure as defined on the yaml. ### Example: @@ -40,11 +40,11 @@ Given the following incoming webhook payload to the yaml defined endpoint `http: ```json # Incoming Payload { - "project":{"name":"landing"}, - "object_kind":"story", + "project":{"name":"landing"}, + "object_kind":"story", "object_attributes":{ - "title": "Issue with", - "description":"Short description here", + "title": "Issue with", + "description":"Short description here", "url": "SITE HERE" } } @@ -55,13 +55,13 @@ Given the following incoming webhook payload to the yaml defined endpoint `http: # Transformed Payload { "data": { - "name": "[landing][story] Issue with", + "name": "[landing][story] Issue with", "description": "Description: Short description here\\nURL:SITE HERE" } } ``` -> [!NOTE] +> [!NOTE] > The structure of the transformed payload is based on the structure defined on the childs of the yaml `translations` node ## Requirements