Skip to content

Commit

Permalink
Visualize Actions, Achievements and Validators #229
Browse files Browse the repository at this point in the history
  • Loading branch information
sveneisenschmidt committed Dec 9, 2018
1 parent b5b1de7 commit 680ceae
Show file tree
Hide file tree
Showing 12 changed files with 286 additions and 33 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ RUN apt -y update && \
apt install -y \
libicu-dev \
libxml2-dev \
zlib1g-dev && \
zlib1g-dev \
graphviz && \
docker-php-ext-install \
pdo_mysql \
intl \
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"snc/redis-bundle": "~2.0.6",
"symfony/symfony": "~4.0",
"symfony/monolog-bundle": "~3.1|~4.0",
"symfony/swiftmailer-bundle": "^3.1|~4.0"
"symfony/swiftmailer-bundle": "^3.1|~4.0",
"graphp/graphviz": "^0.2.1"
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "~3.0|~4.0",
Expand Down
167 changes: 152 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions config/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ ApiBundle:
resource: "@Api/Resources/config/routing.yml"
prefix: /api

IntegrationBundle:
resource: "@Integration/Resources/config/routing.yml"
prefix: /integration

WebhookBundle:
resource: "@Webhook/Resources/config/routing.yml"
prefix: /webhook
Expand Down
16 changes: 8 additions & 8 deletions integration/demo/achievements.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
integration:
achievements:
demo-achievement-01:
label: Demo achievement label
description: Demo achievement description
label: "You did something 5x!"
description: "Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem."
points: 50
actions: [demo-action-01, demo-action-02]
imageUrl: https://avatars.dicebear.com/v2/identicon/demo-achievement-01.svg
demo-achievement-02:
label: Demo achievement label
description: Demo achievement description
label: "You did another thing 10x!"
description: "Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus."
points: 100
actions: [demo-action-01, demo-action-02]
imageUrl: https://avatars.dicebear.com/v2/identicon/demo-achievement-02.svg
demo-achievement-03:
label: Demo achievement label
description: Demo achievement description
label: "You did it again 20x!"
description: "Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt."
points: 200
actions: [demo-action-01, demo-action-02]
imageUrl: https://avatars.dicebear.com/v2/identicon/demo-achievement-03.svg
demo-achievement-04:
label: Demo achievement label
description: Demo achievement description
label: "You did somewhat 30x!"
description: "Duis leo. Sed fringilla mauris sit amet nibh."
points: 400
actions: [demo-action-01, demo-action-02]
imageUrl: https://avatars.dicebear.com/v2/identicon/demo-achievement-04.svg
8 changes: 4 additions & 4 deletions integration/demo/actions.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
integration:
actions:
demo-action-01:
label: Demo 01 action label
description: Demo actions description
label: "Some Action"
description: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor."
imageUrl: https://avatars.dicebear.com/v2/identicon/demo-action-01.svg
demo-action-02:
label: Demo 02 action label
description: Demo actions description
label: "Another Action"
description: "Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum."
imageUrl: https://avatars.dicebear.com/v2/identicon/demo-action-02.svg
6 changes: 5 additions & 1 deletion integration/example/bitbucket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ integration:
pullrequest-opened:
label: Pull request opened
description: ...
imageUrl: 'https://avatars.dicebear.com/v2/identicon/3968.svg'
pullrequest-reviewed:
label: Pull request reviewed
description: ...
imageUrl: 'https://avatars.dicebear.com/v2/identicon/3968.svg'
pullrequest-merged:
label: Pull request merged
description: ...
imageUrl: 'https://avatars.dicebear.com/v2/identicon/3968.svg'

achievements:
pull-request-streak-badge:
label: Code-aholic
description: Perform three times an action on any pull request. Can be awarded multiple times.
points: 50
actions: [pullrequest-opened, pullrequest-reviewed, pullrequest-merged]
imageUrl: 'https://avatars.dicebear.com/v2/identicon/3968.svg'

validators:
pull-request-streak-validator:
Expand Down Expand Up @@ -52,4 +56,4 @@ integration:
arguments:
- username
-
sveneisenschmidt: alex.doe
sveneisenschmidt: alex.doe
Loading

0 comments on commit 680ceae

Please # to comment.