-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* two or more MSH in the Batch function should work * if one MSH is passed in Batch, fail * moved unit tests for sanity checks to new file * updated unit tests * using HL&FatalError class for issues inside normalizedBuilder.ts and normalizedClient.ts * added jest verbose as an option
- Loading branch information
Showing
9 changed files
with
359 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"LABEL": { | ||
"name": "title needs formatting", | ||
"color": "EEEEEE" | ||
}, | ||
"CHECKS": { | ||
"prefixes": ["[Bot] docs: "], | ||
"regexp": "^(feat|fix|docs|test|ci|chore)!?(\\(.*\\))?!?:.*" | ||
}, | ||
"MESSAGES": { | ||
"success": "PR title is valid", | ||
"failure": "PR title is invalid", | ||
"notice": "PR Title needs to pass regex '^(feat|fix|docs|test|ci|chore)!?(\\(.*\\))?!?:.*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Lint PR" | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, edited, reopened, synchronize] | ||
|
||
# IMPORTANT: No checkout actions, scripts, or builds should be added to this workflow. Permissions should always be used | ||
# with extreme caution. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target | ||
permissions: {} | ||
|
||
# PR updates can happen in quick succession, leading to this | ||
# workflow being trigger a number of times. This limits it | ||
# to one run per PR. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
|
||
jobs: | ||
validate: | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
name: Validate PR Title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: thehanimo/pr-title-checker@0cf5902181e78341bb97bb06646396e5bd354b3f # v1.4.0 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
configuration_path: ".github/pr-title-checker-config.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { HL7_2_7_MSH } from '../../src/specification/2.7' | ||
|
||
export const MSH_HEADER: HL7_2_7_MSH = { | ||
msh_9_1: 'ADT', | ||
msh_9_2: 'A01', | ||
msh_11_1: 'D' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.