-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
24 changed files
with
16,835 additions
and
10,929 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,40 @@ | ||
{ | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
], | ||
"helpUrl": "https://perunaai.atlassian.net/wiki/spaces/STRIBOG/pages/13467868/Semantic+versioning", | ||
"rules": { | ||
"scope-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"core", | ||
"openapi", | ||
"cli", | ||
"gui", | ||
"engine", | ||
"registrar", | ||
"dispatcher", | ||
"mvn", | ||
"deps", | ||
"deps-dev" | ||
] | ||
] | ||
}, | ||
"prompt": { | ||
"questions": { | ||
"scope": { | ||
"description": "Enter the name of the module affected (e.g. core)" | ||
}, | ||
"isIssueAffected": { | ||
"description": "Are there any specifics for deployment (upgrade notes)?" | ||
}, | ||
"issuesBody": { | ||
"description": "If there are deployment/upgrade notes, the commit requires a body. Please enter a longer description of the commit itself" | ||
}, | ||
"issues": { | ||
"description": "Enter UPGRADE NOTE: description of what needs to be done" | ||
} | ||
} | ||
} | ||
} |
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,20 @@ | ||
name: Check | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
run-commitlint-on-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Validate all commits from PR | ||
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose |
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
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 |
---|---|---|
@@ -1,30 +1,138 @@ | ||
{ | ||
"branches": [ | ||
"production", | ||
"+([0-9])?(.{+([0-9]),x}).x", | ||
{ "name": "alpha", "prerelease": true }, | ||
{ "name": "beta", "prerelease": true } | ||
], | ||
"preset": "conventionalcommits", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
["@semantic-release/exec", { | ||
"prepareCmd": "./update-versions.sh ${nextRelease.version} && mvn -B clean install" | ||
}], | ||
["@semantic-release/git", { | ||
"assets": [["**/pom.xml", "!perun-openapi/target/generated-sources/openapi/pom.xml"], "perun-openapi/openapi.yml", "perun-cli/Perun/Agent.pm"], | ||
"message": "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}" | ||
}], | ||
["@semantic-release/github", { | ||
"assets": [ | ||
{"path": "perun-rpc/target/perun-rpc.war"}, | ||
{"path": "perun-engine/target/perun-engine.jar"}, | ||
{"path": "perun-ldapc/target/perun-ldapc.jar"}, | ||
{"path": "perun-web-gui/target/perun-web-gui.war"}, | ||
{"path": "perun-cli-java/target/perun-cli-java.jar"} | ||
] | ||
}] | ||
] | ||
"branches": [ | ||
"production", | ||
"+([0-9])?(.{+([0-9]),x}).x", | ||
{ | ||
"name": "alpha", | ||
"prerelease": true | ||
}, | ||
{ | ||
"name": "beta", | ||
"prerelease": true | ||
} | ||
], | ||
"preset": "conventionalcommits", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
"preset": "conventionalcommits", | ||
"presetConfig": { | ||
"types": [ | ||
{ | ||
"type": "feat", | ||
"section": "New features and notable changes", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "fix", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "perf", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "revert", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "docs", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "style", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "chore", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "refactor", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "test", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "build", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "ci", | ||
"hidden": true | ||
} | ||
], | ||
"issuePrefixes": [ | ||
"ST" | ||
], | ||
"issueUrlFormat": "https://perunaai.atlassian.net/browse/{{prefix}}{{id}}" | ||
}, | ||
"parserOpts": { | ||
"noteKeywords": [ | ||
"BREAKING CHANGE", | ||
"BREAKING CHANGES", | ||
"DEPLOYMENT NOTE", | ||
"DEPLOYMENT NOTES", | ||
"UPGRADE NOTE", | ||
"UPGRADE NOTES" | ||
] | ||
} | ||
} | ||
], | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
"prepareCmd": "./update-versions.sh ${nextRelease.version} && mvn -B clean install" | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": [ | ||
[ | ||
"**/pom.xml", | ||
"!perun-openapi/target/generated-sources/openapi/pom.xml" | ||
], | ||
"perun-openapi/openapi.yml", | ||
"perun-cli/Perun/Agent.pm", | ||
"UPGRADE.md" | ||
], | ||
"message": "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}" | ||
} | ||
], | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogFile": "UPGRADE.md", | ||
"changelogTitle": "Upgrade notes" | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"assets": [ | ||
{ | ||
"path": "perun-rpc/target/perun-rpc.war" | ||
}, | ||
{ | ||
"path": "perun-engine/target/perun-engine.jar" | ||
}, | ||
{ | ||
"path": "perun-ldapc/target/perun-ldapc.jar" | ||
}, | ||
{ | ||
"path": "perun-web-gui/target/perun-web-gui.war" | ||
}, | ||
{ | ||
"path": "perun-cli-java/target/perun-cli-java.jar" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} | ||
|
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.