Skip to content

Commit

Permalink
Merge branch 'BerryCloud:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasturrell authored Jan 3, 2024
2 parents 78b17fd + b20154c commit 08d2b23
Show file tree
Hide file tree
Showing 150 changed files with 2,773 additions and 987 deletions.
94 changes: 94 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Bug Report
description: Create a bug report to help us improve
title: "[Bug]: "
labels: ["bug", "triage"]
assignees:
- knoake
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: summary
attributes:
label: Summary
description: A clear and concise description of what the bug is.
placeholder: Posting a statement with an attachment fails with a 400 error
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to reproduce
description: |
Steps to reproduce the behavior.
A unit test or JDoodle (https://www.jdoodle.com/online-java-compiler) example would be very helpful.
placeholder: |
```java
@Test
void whenPostingStatementWithAttachmentThenResponseStatusCodeIsOk()
throws InterruptedException {
// When Posting Statement With Attachment
var response = client.postStatement(r -> r
.statement(s -> s.agentActor(a -> a.name("A N Other").mbox("mailto:another@example.com"))
.addAttachment(a -> a.content("Simple attachment").length(17).contentType("text/plain")
.usageType(URI.create("http://adlnet.gov/expapi/attachments/text"))
.addDisplay(Locale.ENGLISH, "text attachment"))
.verb(Verb.ATTEMPTED)
.activityObject(o -> o.id("https://example.com/activity/simplestatement")
.definition(d -> d.addName(Locale.ENGLISH, "Simple Statement")))))
.block();
// Then Response Status Code Is Ok
assertThat(response.getStatusCode().value(), is(200));
}
```
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
placeholder: The statement is posted successfully with a 200 response status code
validations:
required: true
- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: A clear and concise description of what actually happens.
placeholder: The statement fails to post with a 400 response status code
validations:
required: true
- type: textarea
attributes:
label: Notes
description: Any additional information that might be useful
placeholder: |
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: dropdown
id: version
attributes:
label: Version
description: |
What version of our software are you running?
Please note that we only support the latest version of our software.
options:
- 1.x
- 2.x
- 3.x
- 4.x
- 5.x
validations:
required: true
72 changes: 0 additions & 72 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Enhancement request
description: Suggest an enhancement for this project
title: "[Enhancement]: "
labels: ["enhancement", "triage"]
assignees:
- knoake
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this enhancement request!
- type: textarea
id: what
attributes:
label: What
description: What does the enhancement do?
placeholder: I want to be able to...
validations:
required: true
- type: textarea
id: why
attributes:
label: Why
description: Why is the enhancement useful?
placeholder: So that I can...
validations:
required: true
- type: textarea
id: notes
attributes:
label: Notes
description: Any other information or screenshots about the enhancement.
placeholder: |
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/technical-task.md

This file was deleted.

2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
reviewers:
- "berrycloud/reviewers"
4 changes: 2 additions & 2 deletions .github/workflows/maven_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

name: Java CI with Maven on Pull Request

on:
pull_request:
branches: ["main"]
Expand All @@ -24,7 +24,7 @@ jobs:
run: |
if [ $FORK = false ]
then
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=BerryCloud_xapi-java -Dsonar.organization=berry-cloud -Dsonar.host.url=https://sonarcloud.io --file pom.xml
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=BerryCloud_xapi-java -Dsonar.organization=berrycloud -Dsonar.host.url=https://sonarcloud.io --file pom.xml
fi
env:
FORK: ${{ github.event.pull_request.head.repo.fork }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

name: Java CI with Maven on Push

on:
push:
branches: ["main"]
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Build with Maven
run: mvn -B verify --file pom.xml
- name: Scan with Sonar
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=BerryCloud_xapi-java -Dsonar.organization=berry-cloud -Dsonar.host.url=https://sonarcloud.io --file pom.xml
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=BerryCloud_xapi-java -Dsonar.organization=berrycloud -Dsonar.host.url=https://sonarcloud.io --file pom.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "interactive",
"cSpell.words": ["István", "Rátkai", "Selindek", "Turrell", "xapi"]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2014-2023 Berry Cloud Ltd

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 08d2b23

Please sign in to comment.