Skip to content

Commit e682a39

Browse files
chore: Release 3.5.0 [skip ci]
1 parent 579fb11 commit e682a39

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [3.5.0](https://github.com/amannn/action-semantic-pull-request/compare/v3.4.6...v3.5.0) (2021-12-15)
4+
5+
6+
### Features
7+
8+
* 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))
9+
310
### [3.4.6](https://github.com/amannn/action-semantic-pull-request/compare/v3.4.5...v3.4.6) (2021-10-31)
411

512

dist/index.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33292,17 +33292,21 @@ const validatePrTitle = __nccwpck_require__(3661);
3329233292

3329333293
module.exports = async function run() {
3329433294
try {
33295-
const client = github.getOctokit(process.env.GITHUB_TOKEN);
3329633295
const {
3329733296
types,
3329833297
scopes,
3329933298
requireScope,
3330033299
wip,
3330133300
subjectPattern,
3330233301
subjectPatternError,
33303-
validateSingleCommit
33302+
validateSingleCommit,
33303+
githubBaseUrl
3330433304
} = parseConfig();
3330533305

33306+
const client = github.getOctokit(process.env.GITHUB_TOKEN, {
33307+
baseUrl: githubBaseUrl
33308+
});
33309+
3330633310
const contextPullRequest = github.context.payload.pull_request;
3330733311
if (!contextPullRequest) {
3330833312
throw new Error(
@@ -33466,14 +33470,20 @@ module.exports = function parseConfig() {
3346633470
);
3346733471
}
3346833472

33473+
let githubBaseUrl;
33474+
if (process.env.INPUT_GITHUBBASEURL) {
33475+
githubBaseUrl = ConfigParser.parseString(process.env.INPUT_GITHUBBASEURL);
33476+
}
33477+
3346933478
return {
3347033479
types,
3347133480
scopes,
3347233481
requireScope,
3347333482
wip,
3347433483
subjectPattern,
3347533484
subjectPatternError,
33476-
validateSingleCommit
33485+
validateSingleCommit,
33486+
githubBaseUrl
3347733487
};
3347833488
};
3347933489

0 commit comments

Comments
 (0)