Skip to content

Commit

Permalink
Merge pull request #24 from AxonFramework/feature/set-metadata-via-co…
Browse files Browse the repository at this point in the history
…ntext

Set message metadata via Reactor context
  • Loading branch information
schananas authored Apr 2, 2021
2 parents 0d49aa8 + 1c43a3d commit 0623c75
Show file tree
Hide file tree
Showing 30 changed files with 891 additions and 151 deletions.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!--
Thanks for taking the time to draft up an issue for Axon Framework' Reactor Extension!
Prior to starting off, please read the following:
## Usage Questions
If you are having difficulty using Axon Framework' Reactor Extension,
please consider to check Axon's Reference Guide first if it answers your question: https://docs.axoniq.io/reference-guide/extensions/reactor
When the Reference Guide does no cover the specific question you have, take the following into account:
- GitHub is *not* intended for usages questions, instead:
- Drop a questions on AxonIQ's forum: https://discuss.axoniq.io/
- Or place a new question on StackOverflow, using the `axon` tag.
## Reporting an bug, feature or enhancement
Prior to filing an issue, please verify that it's not already reported by someone else.
After that's done, your issue will typically fall under one of the following options:
1. It's a `bug`
2. It's a `feature` request
3. It's an `enhancement` request
It is recommended that for either of the three you use one of the prepared issue template.
You can find all three of them [here](https://github.com/AxonFramework/extension-reactor/issues/new/choose).
## None of the above fit!
If you have encountered a use case which is not a question, nor a feature request, feel free to draft your scenario below.
-->
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/1_feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: 'Feature request'
about: 'Suggest a feature for the Reactor Extension'
title:
labels: 'Type: Feature'
---

<!-- Please use markdown (https://guides.github.com/features/mastering-markdown/) semantics throughout the feature description. -->

### Feature Description

<!--
Please provide a description of the feature you envision.
For example (pseudo-)code snippets showing what it might look like help us understand your suggestion better.
-->

### Current Behaviour

<!-- Please share the current behaviour of the Reactor Extension around this topic, if applicable. -->

### Wanted Behaviour

<!-- Please described the desired outcome through the Reactor Extension around the suggested feature. -->

### Possible Workarounds

<!-- If applicable, share any workarounds for the described feature. -->
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/2_enhancement_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: 'Enhancement request'
about: 'Suggest an enhancement/change to an existing feature for the Reactor Extension'
title:
labels: 'Type: Enhancement'
---

<!-- Please use markdown (https://guides.github.com/features/mastering-markdown/) semantics throughout the enhancement description. -->

### Enhancement Description

<!-- Please provide a description of the feature you envision. -->

### Current Behaviour

<!-- Please share the current behaviour of the Reactor Extension around this topic, if applicable. -->

### Wanted Behaviour

<!-- Please described the desired outcome through the Reactor Extension around the suggested enhancement. -->

### Possible Workarounds

<!-- If applicable, share any workarounds for the described enhancement. -->
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/3_bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: 'Bug report'
about: 'Report a bug for the Reactor Extension'
title:
labels: 'Type: Bug'
---

<!-- Please use markdown (https://guides.github.com/features/mastering-markdown/) semantics throughout the bug description. -->

### Basic information

* Axon Framework version:
* JDK version:
* Reactor Extension version:
* Complete executable reproducer if available (e.g. GitHub Repo):

### Steps to reproduce

<!--
Share all steps to be able to reproduce the bug, ideally based on a reproducer.
Combining this with a description of your setup helps us to figure out what the issue might be.
-->

### Expected behaviour

<!-- Please describe the expected behaviour. -->

### Actual behaviour

<!--
Please describe the actual behaviour as discovered.
If available, provide the entire stack trace, with markdown (```) semantics.
-->
4 changes: 4 additions & 0 deletions .github/close-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Type: Bug": "Status: Resolved"
"Type: Enhancement": "Status: Resolved"
"Type: Feature": "Status: Resolved"
"Type: Dependency Upgrade": "Status: Resolved"
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: maven
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 5
# Specify labels for pull requests
labels:
- "Type: Dependency Upgrade"
- "Priority 1: Must"
- "Status: In Progress"
# Add reviewers
reviewers:
- "m1l4n54v1c"
- "saratry"
- "stefanvozd"
milestone: 2
20 changes: 20 additions & 0 deletions .github/release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
releasenotes:
sections:
- title: "Features"
emoji: ":star:"
labels: [ "Type: Feature" ]
- title: "Enhancements"
emoji: ":chart_with_upwards_trend:"
labels: [ "Type: Enhancement" ]
- title: "Bug Fixes"
emoji: ":beetle:"
labels: [ "Type: Bug" ]
- title: "Dependency Upgrade"
emoji: ":hammer_and_wrench:"
labels: [ "Type: Dependency Upgrade" ]
issues:
exclude:
labels: [ "Type: Incorrect Repository", "Type: Question" ]
contributors:
exclude:
names: [ "dependabot" ]
93 changes: 93 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Reactor Extension

on:
push:
branches:
- master
- axon-reactor-*.*.x
pull_request:

jobs:
build:
name: Test and Build on JDK ${{ matrix.java-version }}

runs-on: ubuntu-latest

strategy:
matrix:
include:
- java-version: 8
sonar-enabled: false
deploy: true
- java-version: 11
sonar-enabled: true
deploy: false

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java-version }}
server-id: sonatype
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Cache .m2
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
- name: Maven operation with Sonar
if: matrix.sonar-enabled
run: |
mvn -B -U -Pcoverage \
clean verify \
sonar:sonar \
-Dsonar.projectKey=AxonFramework_extension-reactor \
-Dsonar.organization=axonframework \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Maven operation without Sonar
if: matrix.sonar-enabled != true
run: |
mvn -B -U clean verify
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy to Sonatype
if: github.github.head_ref == null && success() && matrix.deploy
run: |
./mvnw -B -U deploy -DskipTests=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.SONATYPE_TOKEN_ID }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASS }}

- name: Notify success to Slack
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel_id: CAGSEC92A
status: SUCCESS
color: good

- name: Notify failure to Slack
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel_id: CAGSEC92A
status: FAILED
color: danger
33 changes: 33 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Trigger the workflow on milestone events
on:
milestone:
types: [closed]
name: Milestone Closure
jobs:
create-release-notes:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release Notes Markdown
uses: docker://decathlon/release-notes-generator-action:2.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
OUTPUT_FOLDER: temp_release_notes
USE_MILESTONE_TITLE: "true"
- name: Get the name of the created Release Notes file and extract Version
run: |
RELEASE_NOTES_FILE=$(ls temp_release_notes/*.md | head -n 1)
echo "RELEASE_NOTES_FILE=$RELEASE_NOTES_FILE" >> $GITHUB_ENV
VERSION=$(echo ${{ github.event.milestone.title }} | cut -d' ' -f2)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Create a Draft Release Notes on GitHub
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: axon-reactor-${{ env.VERSION }}
release_name: Axon Reactor Extension v${{ env.VERSION }}
body_path: ${{ env.RELEASE_NOTES_FILE }}
draft: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# Maven build artifacts can be ignored
target/
# ...but keep the wrapper jar
!.mvn/wrapper/maven-wrapper.jar

# Eclipse project files
.classpath
Expand Down
Binary file added .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
1 change: 1 addition & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.2/apache-maven-3.6.2-bin.zip
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 0623c75

Please sign in to comment.