Skip to content

Commit abf064b

Browse files
authored
Initial commit
0 parents  commit abf064b

39 files changed

+1910
-0
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
max_line_length = 120
12+
13+
[*.java]
14+
indent_size = 4
15+
ij_continuation_indent_size = 4
16+
ij_java_align_multiline_parameters = true
17+
ij_java_align_multiline_parameters_in_calls = true
18+
ij_java_call_parameters_new_line_after_left_paren = true
19+
ij_java_call_parameters_right_paren_on_new_line = true
20+
ij_java_call_parameters_wrap = on_every_item

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SERVER_PORT=4550

.github/CODEOWNERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* @hmcts/platform-operations @hmcts/developer-enablement
2+
3+
# Ignore files updated by Renovate
4+
gradle/wrapper/gradle-wrapper.properties
5+
Dockerfile
6+
build.gradle
7+
charts/**/Chart.yaml
8+
.github/workflows/*.yaml

.github/CONTRIBUTING.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
## What you should know about this application
7+
8+
This project is a template Spring Boot application. It aims to speed up the creation of new Spring APIs in HMCTS
9+
projects, by serving as the initial setup of each API.
10+
11+
## Before contributing
12+
13+
Any ideas on the user journeys and general service experience you may have **should be first consulted
14+
with us by submitting a new issue** to this repository. Ideas are always welcome, but if something is divergent or unrelated
15+
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.
16+
17+
In the interest of creating a friendly collaboration environment, please read and adhere to an open source contributor's
18+
[code of conduct](http://contributor-covenant.org/version/1/4/).
19+
20+
## Making a contribution
21+
22+
After your idea has been accepted you can implement it. We don't allow direct changes to the codebase from the public,
23+
they have to go through a review first.
24+
25+
Here's what you should do:
26+
1. [fork](https://help.github.com/articles/fork-a-repo/) this repository and clone it to your machine,
27+
2. create a new branch for your change:
28+
* use the latest *master* to branch from,
29+
3. implement the change in your branch:
30+
* if the change is non-trivial it's a good practice to split it into several logically independent units and deliver
31+
each one as a separate commit,
32+
* make sure the commit messages use proper language and accurately describe commit's content, e.g. *"Unify postcode lookup elements spacing"*.
33+
More information on good commit messages can be found [here](http://chris.beams.io/posts/git-commit/),
34+
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,
35+
5. push the change to your GitHub fork,
36+
6. submit a [pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) to our repository:
37+
* ensure that the pull request and related GitHub issue reference each other.
38+
39+
At this point the pull request will wait for someone from our team to review. It may be accepted straight away,
40+
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/renovate.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"local>hmcts/.github:renovate-config",
5+
"local>hmcts/.github//renovate/automerge-all"
6+
]
7+
}

.github/rulesets/master.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"id": 4327583,
3+
"name": "master",
4+
"target": "branch",
5+
"source_type": "Repository",
6+
"source": "hmcts/api-cp-springboot-template",
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": "lint",
47+
"integration_id": 15368
48+
}
49+
]
50+
}
51+
}
52+
],
53+
"bypass_actors": []
54+
}

.github/stale.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 7
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 4
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- dependencies
9+
# Label to use when marking an issue as stale
10+
staleLabel: stale
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: >
18+
This issue is being closed automatically as it was stale

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Java CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
task: [check, test]
14+
15+
steps:
16+
- name: Checkout source code
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
21+
- name: Set up Gradle
22+
uses: gradle/actions/setup-gradle@v4
23+
with:
24+
gradle-version: current
25+
26+
- name: Validate Gradle Wrapper
27+
uses: gradle/actions/wrapper-validation@v4
28+
29+
- name: Run Gradle ${{ matrix.task }}
30+
run: ./gradlew ${{ matrix.task }}

0 commit comments

Comments
 (0)