Skip to content

Commit

Permalink
chore: Release 3.5.0 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Dec 15, 2021
1 parent 579fb11 commit e682a39
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [3.5.0](https://github.com/amannn/action-semantic-pull-request/compare/v3.4.6...v3.5.0) (2021-12-15)


### Features

* Add support for Github Enterprise ([#145](https://github.com/amannn/action-semantic-pull-request/issues/145)) ([579fb11](https://github.com/amannn/action-semantic-pull-request/commit/579fb115c050f156ee6d52244a7ff41b685a89fd))

### [3.4.6](https://github.com/amannn/action-semantic-pull-request/compare/v3.4.5...v3.4.6) (2021-10-31)


Expand Down
16 changes: 13 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33292,17 +33292,21 @@ const validatePrTitle = __nccwpck_require__(3661);

module.exports = async function run() {
try {
const client = github.getOctokit(process.env.GITHUB_TOKEN);
const {
types,
scopes,
requireScope,
wip,
subjectPattern,
subjectPatternError,
validateSingleCommit
validateSingleCommit,
githubBaseUrl
} = parseConfig();

const client = github.getOctokit(process.env.GITHUB_TOKEN, {
baseUrl: githubBaseUrl
});

const contextPullRequest = github.context.payload.pull_request;
if (!contextPullRequest) {
throw new Error(
Expand Down Expand Up @@ -33466,14 +33470,20 @@ module.exports = function parseConfig() {
);
}

let githubBaseUrl;
if (process.env.INPUT_GITHUBBASEURL) {
githubBaseUrl = ConfigParser.parseString(process.env.INPUT_GITHUBBASEURL);
}

return {
types,
scopes,
requireScope,
wip,
subjectPattern,
subjectPatternError,
validateSingleCommit
validateSingleCommit,
githubBaseUrl
};
};

Expand Down

0 comments on commit e682a39

Please sign in to comment.