Skip to content

Commit

Permalink
chore(release): v4.0.1
Browse files Browse the repository at this point in the history
### 🧹 Chore

* extract changelog config to .github repo ([e80d59c](e80d59c))
* extract pre-release to new action ([f46105d](f46105d))
* improve function clarity ([#66](#66)) ([58c54ff](58c54ff)), closes [#65](#65)
  • Loading branch information
dotbase-bot authored Sep 27, 2023
2 parents 805aaf8 + e80d59c commit 5a86f87
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 39 deletions.
11 changes: 0 additions & 11 deletions .github/changelog.config.js

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/create-pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Create Pre-Release

on:
pull_request:
branches:
- main
types: [closed]

jobs:
create-pre-release:
name: Create Pre-Release
uses: dot-base/.github/.github/workflows/create-pre-release.yml@main
secrets:
CR_PAT: ${{ secrets.CR_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: workflow_dispatch
jobs:
create-release-pr:
name: Create Release PR
uses: dot-base/.github/.github/workflows/create-release-pr.yml@master
uses: dot-base/.github/.github/workflows/create-release-pr.yml@main
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
38 changes: 38 additions & 0 deletions .github/workflows/generate-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Generate Changelog

on: workflow_dispatch

jobs:
generate-changelog:
name: Generate Changelog
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
uses: actions/checkout@v3
with:
ref: "main"

- name: Check Out .github Repository
uses: actions/checkout@v3
with:
repository: "dot-base/.github"
ref: "main"
path: "actions-repo"
token: ${{ secrets.GH_BOT_PAT }}

- name: Install conventional-changelog
run: |
npm i conventional-changelog-conventionalcommits
- name: Generate Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.github_token }}
release-count: 0
output-file: "false"
skip-version-file: "true"
skip-commit: "true"
git-push: "false"
config-file-path: "actions-repo/.github/changelog.config.js"
create-summary: true
34 changes: 8 additions & 26 deletions .github/workflows/manage-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Manage PR
on:
pull_request:
branches:
- master
- dev
- main
- release
pull_request_review:
types:
- submitted
Expand All @@ -13,20 +13,20 @@ on:
jobs:
lint-and-test:
name: Lint Files and Run Tests
uses: dot-base/.github/.github/workflows/lint-and-test.yml@master
uses: dot-base/.github/.github/workflows/lint-and-test.yml@main

get-pr:
name: Get PR
needs: lint-and-test
uses: dot-base/.github/.github/workflows/get-pr.yml@master
uses: dot-base/.github/.github/workflows/get-pr.yml@main
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}

lint-pr-title:
name: Lint PR Title
needs: get-pr
uses: dot-base/.github/.github/workflows/lint-pr-title.yml@master
uses: dot-base/.github/.github/workflows/lint-pr-title.yml@main
with:
pr: ${{ needs.get-pr.outputs.pr }}
secrets:
Expand All @@ -38,7 +38,7 @@ jobs:
name: Merge Release PR
needs: [get-pr, lint-pr-title]
if: ${{ fromJson(needs.get-pr.outputs.pr).type == 'release' && fromJson(needs.get-pr.outputs.pr).isMergeable == true }}
uses: dot-base/.github/.github/workflows/merge-release-pr.yml@master
uses: dot-base/.github/.github/workflows/merge-release-pr.yml@main
with:
pr: ${{ needs.get-pr.outputs.pr }}
secrets:
Expand All @@ -48,7 +48,7 @@ jobs:
create-release:
name: Create Release
needs: merge-release-pr
uses: dot-base/.github/.github/workflows/create-release.yml@master
uses: dot-base/.github/.github/workflows/create-release.yml@main
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
Expand All @@ -59,27 +59,9 @@ jobs:
name: Configure Feature PR
needs: [get-pr, lint-pr-title]
if: ${{ fromJson(needs.get-pr.outputs.pr).type == 'feature' }}
uses: dot-base/.github/.github/workflows/configure-feature-pr.yml@master
uses: dot-base/.github/.github/workflows/configure-feature-pr.yml@main
with:
pr: ${{ needs.get-pr.outputs.pr }}
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}

merge-feature-pr:
name: Merge Feature PR
needs: [get-pr, lint-pr-title]
if: ${{ fromJson(needs.get-pr.outputs.pr).type == 'feature' && fromJson(needs.get-pr.outputs.pr).isMergeable == true }}
uses: dot-base/.github/.github/workflows/merge-feature-pr.yml@master
with:
pr: ${{ needs.get-pr.outputs.pr }}
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}

create-pre-release:
name: Create Pre-Release
needs: merge-feature-pr
uses: dot-base/.github/.github/workflows/create-pre-release.yml@master
secrets:
CR_PAT: ${{ secrets.CR_PAT }}
5 changes: 4 additions & 1 deletion src/controller/icd10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export class ICD10Controller {
private static removeExtensions(
res: Fuse.FuseResult<ICodeSystem_Concept>[]
): Fuse.FuseResult<ICodeSystem_Concept>[] {
res.forEach((r) => (r.item.extension = r.item.modifierExtension = undefined));
res.forEach((r) => {
r.item.extension = undefined;
r.item.modifierExtension = undefined;
});
return res;
}
}

0 comments on commit 5a86f87

Please sign in to comment.