Skip to content

Commit ad74fb0

Browse files
Initial commit
0 parents  commit ad74fb0

File tree

59 files changed

+2744
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2744
-0
lines changed

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SERVER_PORT=4550
2+
BASE_IMAGE=openjdk:21-jdk-slim
3+
JAR_FILENAME=service-hmcts-marketplace-springboot-template-*.jar
4+
JAR_FILE_PATH=build/libs

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @hmcts/cp-x-cjs-data-api

.github/CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Contribution guidelines
2+
3+
We're happy to accept 3rd-party contributions. Please make sure you read this document before you do any work though,
4+
as we have some expectations related to the content and quality of change sets.
5+
6+
## Before contributing
7+
8+
Any ideas on the user journeys and general service experience you may have **should be first consulted
9+
with us by submitting a new issue** to this repository. Ideas are always welcome, but if something is divergent or unrelated
10+
to what we're trying to achieve we won't be able to accept it. Please keep this in mind as we don't want to waste anybody's time.
11+
12+
In the interest of creating a friendly collaboration environment, please read and adhere to an open source contributor's
13+
[code of conduct](http://contributor-covenant.org/version/1/4/).
14+
15+
## Making a contribution
16+
17+
After your idea has been accepted you can implement it. We don't allow direct changes to the codebase from the public,
18+
they have to go through a review first.
19+
20+
Here's what you should do:
21+
1. [fork](https://help.github.com/articles/fork-a-repo/) this repository and clone it to your machine,
22+
2. create a new branch for your change:
23+
* use the latest *main* to branch from,
24+
3. implement the change in your branch:
25+
* if the change is non-trivial it's a good practice to split it into several logically independent units and deliver
26+
each one as a separate commit,
27+
* make sure the commit messages use proper language and accurately describe commit's content, e.g. *"Unify postcode lookup elements spacing"*.
28+
More information on good commit messages can be found [here](http://chris.beams.io/posts/git-commit/),
29+
4. test if your feature works as expected and does not break any existing features, this may include implementing additional automated tests or amending existing ones,
30+
5. push the change to your GitHub fork,
31+
6. submit a [pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) to our repository:
32+
* ensure that the pull request and related GitHub issue reference each other.
33+
34+
At this point the pull request will wait for someone from our team to review. It may be accepted straight away,
35+
or we may ask you to make some additional amendments before incorporating it into the main branch.

.github/ISSUE_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### What would you like to change?
2+
3+
### How do you think that would improve the project?
4+
5+
### If this entry is related to a bug, please provide the steps to reproduce it

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Before creating a pull request make sure that:**
2+
3+
- [ ] commit messages are meaningful and follow good commit message guidelines
4+
- [ ] README and other documentation has been updated / added (if needed)
5+
- [ ] tests have been updated / new tests has been added (if needed)
6+
7+
Please remove this line and everything above and fill the following sections:
8+
9+
10+
### JIRA link (if applicable) ###
11+
12+
13+
14+
### Change description ###
15+
16+
17+
18+
**Does this PR introduce a breaking change?** (check one with "x")
19+
20+
```
21+
[ ] Yes
22+
[ ] No
23+
```

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gradle"
4+
directory: "/" # location of build.gradle
5+
schedule:
6+
interval: "daily" # or "weekly", "monthly"
7+
open-pull-requests-limit: 5
8+
commit-message:
9+
prefix: "chore(deps)"
10+
groups:
11+
all-dependencies:
12+
patterns:
13+
- "*"
14+
15+
- package-ecosystem: "github-actions"
16+
directory: "/" # location of your workflow files
17+
schedule:
18+
interval: "weekly"

.github/pmd-ruleset.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ruleset name="Custom Ruleset"
3+
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0
6+
https://pmd.github.io/pmd-7.0.0/pmd-7.0.0.xsd">
7+
8+
<description>Custom ruleset including exclusions</description>
9+
10+
<rule ref="category/java/bestpractices.xml"/>
11+
<rule ref="category/java/codestyle.xml">
12+
<exclude name="AtLeastOneConstructor"/>
13+
<exclude name="LongVariable"/>
14+
</rule>
15+
<rule ref="category/java/errorprone.xml"/>
16+
<rule ref="category/java/performance.xml"/>
17+
<rule ref="category/java/security.xml"/>
18+
</ruleset>

.github/rulesets/DELETE_ME.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Import this ruleset into your repository to enable the rules defined in this file.
2+
3+
Then the rulesets directory can be deleted.

.github/rulesets/main.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"id": 4756433,
3+
"name": "main",
4+
"target": "branch",
5+
"source_type": "Repository",
6+
"source": "hmcts/service-cp-refdata-courthearing-judges",
7+
"enforcement": "active",
8+
"conditions": {
9+
"ref_name": {
10+
"exclude": [],
11+
"include": [
12+
"~DEFAULT_BRANCH"
13+
]
14+
}
15+
},
16+
"rules": [
17+
{
18+
"type": "deletion"
19+
},
20+
{
21+
"type": "non_fast_forward"
22+
},
23+
{
24+
"type": "pull_request",
25+
"parameters": {
26+
"required_approving_review_count": 0,
27+
"dismiss_stale_reviews_on_push": false,
28+
"require_code_owner_review": false,
29+
"require_last_push_approval": false,
30+
"required_review_thread_resolution": false,
31+
"automatic_copilot_code_review_enabled": false,
32+
"allowed_merge_methods": [
33+
"merge",
34+
"squash",
35+
"rebase"
36+
]
37+
}
38+
},
39+
{
40+
"type": "required_status_checks",
41+
"parameters": {
42+
"strict_required_status_checks_policy": false,
43+
"do_not_enforce_on_create": false,
44+
"required_status_checks": [
45+
{
46+
"context": "Analyze (java)",
47+
"integration_id": 15368
48+
},
49+
{
50+
"context": "CodeQL",
51+
"integration_id": 57789
52+
},
53+
{
54+
"context": "pmd-analysis",
55+
"integration_id": 15368
56+
},
57+
{
58+
"context": "ci-draft / Build",
59+
"integration_id": 15368
60+
},
61+
{
62+
"context": "ci-draft / Artefact-Version",
63+
"integration_id": 15368
64+
},
65+
{
66+
"context": "secret-scanning",
67+
"integration_id": 15368
68+
}
69+
]
70+
}
71+
}
72+
],
73+
"bypass_actors": []
74+
}

0 commit comments

Comments
 (0)