Skip to content

Commit a6599d3

Browse files
authored
Merge pull request #63 from kiegroup/mareknovotny-upgrade-v3-bc-configreader
Trying to upgrade @kie/build-chain-configuration-reader to v3
2 parents 7007d6c + cea7748 commit a6599d3

File tree

5 files changed

+89
-155
lines changed

5 files changed

+89
-155
lines changed

.github/workflows/node.js.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222
- run: yarn
23-
- run: yarn build -- --if-present
23+
- run: yarn build --if-present
2424
- run: yarn test

packages/action/dist/index.js

+22-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/action/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"dependencies": {
4343
"@actions/core": "^1.6.0",
44-
"@kie/build-chain-configuration-reader": "^2.2.6",
44+
"@kie/build-chain-configuration-reader": "^3.1.4",
4545
"@octokit/rest": "^18.12.0",
4646
"argparse": "^2.0.1",
4747
"axios": "^0.26.1",
@@ -54,7 +54,7 @@
5454
"tmp": "^0.2.1"
5555
},
5656
"devDependencies": {
57-
"@vercel/ncc": "^0.31.1",
57+
"@vercel/ncc": "^0.38.2",
5858
"eslint": "^7.32.0",
5959
"eslint-config-google": "^0.14.0",
6060
"eslint-config-prettier": "^6.11.0",

packages/action/src/utils/pullrequest-utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { getBaseMappingInfo } = require("@kie/build-chain-configuration-reader");
1+
const { getMapping } = require("@kie/build-chain-configuration-reader");
22
const { logger } = require("../lib/logger");
33

44
function filterPullRequests(
@@ -15,7 +15,7 @@ function filterPullRequests(
1515
);
1616
if (baseBranchesToFilter && baseBranchesToFilter.length) {
1717
const baseBranchesToFilterMapped = baseBranchesToFilter.map(baseBranch => {
18-
const baseMappingInfo = getBaseMappingInfo(
18+
const baseMappingInfo = getMapping(
1919
nodeTriggeringTheJob.project,
2020
nodeTriggeringTheJob.mapping,
2121
node.project,

0 commit comments

Comments
 (0)