Skip to content

Commit f9898c4

Browse files
committed
fix: cli e2e tests by adding missing export, remove unused actions
- remove actions which are used in internal fork from chain - add default config value for plugins (an empty array)
1 parent 0ef6a98 commit f9898c4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
},
2626
"exports": {
2727
"./plugin": "./src/plugin.js",
28-
"./proxy/actions": "./src/proxy/actions/index.js"
28+
"./proxy/actions": "./src/proxy/actions/index.js",
29+
"./src/config/env": "./src/config/env.js"
2930
},
3031
"workspaces": [
3132
"./packages/git-proxy-cli"

proxy.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,6 @@
9595
"privateOrganizations": [],
9696
"urlShortener": "",
9797
"contactEmail": "",
98-
"csrfProtection": true
98+
"csrfProtection": true,
99+
"plugins": []
99100
}

src/proxy/chain.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ const proc = require('./processors');
22

33
const pushActionChain = [
44
proc.push.parsePush,
5-
proc.push.checkIfOnboardedRepo,
5+
proc.push.checkRepoInAuthorisedList,
66
proc.push.checkCommitMessages,
77
proc.push.checkAuthorEmails,
8-
// proc.push.checkIfPullRequestApproved,
8+
proc.push.checkUserPushPermission,
99
proc.push.checkIfWaitingAuth,
1010
proc.push.pullRemote,
1111
proc.push.writePack,
@@ -16,7 +16,7 @@ const pushActionChain = [
1616
];
1717

1818
const pullActionChain = [
19-
proc.push.checkIfOnboardedRepo,
19+
proc.push.checkRepoInAuthorisedList,
2020
];
2121

2222
let pluginsLoaded = false;

0 commit comments

Comments
 (0)