Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the next branch into master #2268

Merged
merged 1,176 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1176 commits
Select commit Hold shift + click to select a range
c06ecf2
still fixing the intergration tests
ATorrise Jun 24, 2024
6621988
Merge branch 'next' of https://github.com/zowe/zowe-cli into custEven…
zFernand0 Jun 25, 2024
224c804
Merge branch 'custEventsPt2' of https://github.com/zowe/zowe-cli into…
zFernand0 Jun 25, 2024
ebc9a4d
test: fix final few integration tests
zFernand0 Jun 25, 2024
e356b65
lint: address lint errors
zFernand0 Jun 25, 2024
151b91c
Merge branch 'custEventsPt2' of https://github.com/zowe/zowe-cli into…
ATorrise Jun 25, 2024
87eb1f6
Directly import zowe secrets instead of resolve
gejohnston Jun 25, 2024
7f8c76f
Merge remote-tracking branch 'origin/next' into v1-convert-for-ze
gejohnston Jun 26, 2024
f367da4
Add changelog entry
gejohnston Jun 26, 2024
0dc8be6
slimmed down integration tests
ATorrise Jun 27, 2024
f52bed6
attempting to fix??
ATorrise Jun 27, 2024
d824817
more sensible but small organizational changes
ATorrise Jun 27, 2024
8723259
race condition fix
ATorrise Jun 27, 2024
93f73c1
fixing integration tests and ammending race condition fix
ATorrise Jun 27, 2024
637a2d2
SPACE :alien:
ATorrise Jun 27, 2024
f36025d
:tada:
ATorrise Jun 27, 2024
cb91019
changes for clarity
ATorrise Jun 27, 2024
06ef810
changes for clarity
ATorrise Jun 27, 2024
5301fa5
creating an explanation in the type doc for EventOperator
ATorrise Jun 27, 2024
0429c55
Existing unit tests updated to pass
gejohnston Jun 28, 2024
10aab3c
Add tests to cover new functions
gejohnston Jun 28, 2024
7403112
fix: make sure the env prefix is based on the app name
zFernand0 Jul 1, 2024
a00d53d
Mock out configureLogger
gejohnston Jul 1, 2024
bd8b922
modifying descriptions
ATorrise Jul 1, 2024
742e066
Update for modified output
gejohnston Jul 1, 2024
bc95adb
Mock out Logger.initLogger
gejohnston Jul 1, 2024
2cf9699
Merge remote-tracking branch 'origin/master' into update-next-with-ma…
awharn Jul 1, 2024
aa7d980
fixes to descriptions and type doc
ATorrise Jul 1, 2024
44788ac
mild change to documentation
ATorrise Jul 1, 2024
11bfe8c
First pass
awharn Jul 1, 2024
dd29a96
addressing pt 1 of trae's comments: tidying up
ATorrise Jul 1, 2024
0b2806e
Make additional updates
awharn Jul 1, 2024
71b50b5
Update additional changelogs
awharn Jul 1, 2024
0c77d01
Create plugins.json during test setup
gejohnston Jul 1, 2024
a7c038e
Update changelog
awharn Jul 1, 2024
d783a0d
Add issue link to changelogs
awharn Jul 1, 2024
a6218e9
Last update
awharn Jul 1, 2024
0bf4d85
Merge pull request #2187 from zowe/update-next-with-master
zFernand0 Jul 2, 2024
f64452c
Merge remote-tracking branch 'origin/next' into update-next-deps
awharn Jul 2, 2024
3684c04
resolved bug which resulted in plugins always containing the same pub…
jace-roell Jul 2, 2024
3c18197
add changelog
jace-roell Jul 2, 2024
a4e268a
chore: addressed PR comments and a few other things
zFernand0 Jul 2, 2024
039cf08
consolidated changelog for automation requirements
jace-roell Jul 2, 2024
cdea0da
removed unused variable
jace-roell Jul 2, 2024
ac67acc
lint: address all lint warnings :yum:
zFernand0 Jul 2, 2024
5035b16
added getScopeRegistry() unit test
jace-roell Jul 2, 2024
8b96d9c
Merge pull request #2188 from zowe/update-next-deps
awharn Jul 2, 2024
e4dc68c
update
jace-roell Jul 2, 2024
c8631fb
unused variable
jace-roell Jul 2, 2024
f43757a
Bump version to 8.0.0-next.202407021516 [ci skip]
zowe-robot Jul 2, 2024
1c339aa
removed test case
jace-roell Jul 2, 2024
815a9c6
Merge branch 'next' into plugin-registry-field
jace-roell Jul 2, 2024
115a2fb
changelog
jace-roell Jul 2, 2024
8ed2dee
Remove error on missing plugins dir for VSCode app
gejohnston Jul 2, 2024
4c6f6d9
rename registry to location
jace-roell Jul 2, 2024
799460e
getScopeRegistry() unit test
jace-roell Jul 2, 2024
9c0795c
added awai to funciton mock
jace-roell Jul 2, 2024
af32784
Reorg spies and mockRestores for timing on different OSes
gejohnston Jul 2, 2024
7df9fce
Merge remote-tracking branch 'origin/next' into v1-convert-for-ze
gejohnston Jul 3, 2024
0078fc1
integration tests (wip)
jace-roell Jul 3, 2024
f89eff1
resolving integration tests
jace-roell Jul 3, 2024
90dc883
Merge pull request #2182 from zowe/v1-convert-for-ze
zFernand0 Jul 5, 2024
8a47262
Bump version to 8.0.0-next.202407051717 [ci skip]
zowe-robot Jul 5, 2024
3886533
check if installRegistry is already declared before setting value
jace-roell Jul 8, 2024
46d1649
added ';'
jace-roell Jul 8, 2024
9c7e3fa
Merge remote-tracking branch 'origin/next' into projectBase
gejohnston Jul 8, 2024
a9ea9fc
lint fixes
jace-roell Jul 8, 2024
08b5b1d
Specify tests as Global, globalUser, Project, & projectUser
gejohnston Jul 8, 2024
1ac3022
feat: Allow 'false' as a proper value for credentialManagerOverride APIs
zFernand0 Jul 8, 2024
563307b
Use Global, globalUser, Project, & projectUser tests
gejohnston Jul 8, 2024
3552378
Merge branch 'next' of https://github.com/zowe/zowe-cli into custEven…
zFernand0 Jul 9, 2024
27d6231
Replace redundant test case
gejohnston Jul 9, 2024
a32f325
Use expectedProjectConfigObject
gejohnston Jul 9, 2024
982ed5d
Empty secure arrays in expected user config data
gejohnston Jul 9, 2024
5042ab9
Use different config objects for proj, projUser, global, globalUser
gejohnston Jul 9, 2024
99e0705
Empty the secure array for user configs
gejohnston Jul 9, 2024
9686911
Add required snapshot
gejohnston Jul 9, 2024
76c3124
Empty the secure array for user configs
gejohnston Jul 9, 2024
0afeb95
added handling for undefined scope registry inside of getScopeRegistry()
jace-roell Jul 9, 2024
60240e2
fixed changelog
jace-roell Jul 9, 2024
ca8e848
Remove wrong snapshot file. Update right snapshot file
gejohnston Jul 9, 2024
03c21e3
change hardcoded 'base' to 'project_base'
gejohnston Jul 10, 2024
1ed51d7
modified location testing type to be a function
jace-roell Jul 10, 2024
978717a
Add changelog entries
gejohnston Jul 10, 2024
60fb21f
Merge branch 'next' into plugin-registry-field
jace-roell Jul 11, 2024
8cb0253
tests: fix integration tests :tada:
zFernand0 Jul 11, 2024
894607b
Merge pull request #2136 from zowe/custEventsPt2
zFernand0 Jul 11, 2024
407bdac
Bump version to 8.0.0-next.202407112150 [ci skip]
zowe-robot Jul 11, 2024
b1ac4ec
added backward compatibility for plugins installed on previous versio…
jace-roell Jul 12, 2024
bbd63dd
Merge branch 'next' into plugin-registry-field
jace-roell Jul 12, 2024
ebb1015
chore: update changelog
zFernand0 Jul 16, 2024
7565b08
Revert "added backward compatibility for plugins installed on previou…
jace-roell Jul 16, 2024
6cd7de8
Merge branch 'next' of https://github.com/zowe/zowe-cli into ze-2622
zFernand0 Jul 16, 2024
809ba84
fixed integration test update, refactored plugin list display
jace-roell Jul 16, 2024
f9b6099
removed snapshot update
jace-roell Jul 17, 2024
570b713
updated snapshots
jace-roell Jul 17, 2024
9c099d7
Merge branch 'next' into projectBase
t1m0thyj Jul 17, 2024
baabf51
Merge pull request #2189 from zowe/plugin-registry-field
zFernand0 Jul 18, 2024
a404412
Bump version to 8.0.0-next.202407181255 [ci skip]
zowe-robot Jul 18, 2024
efe6ea1
Merge branch 'next' into projectBase
t1m0thyj Jul 18, 2024
5d55d42
Merge pull request #2194 from zowe/projectBase
gejohnston Jul 18, 2024
4bb4735
Bump version to 8.0.0-next.202407181904 [ci skip]
zowe-robot Jul 18, 2024
29efc66
https://github.com/ATorrise/zowe-cli houses all previous commits and …
ATorrise Jul 19, 2024
d389d8e
updating package.json to have expected base zowe versioning for scrip…
ATorrise Jul 19, 2024
716da67
Merge branch 'next' into zowe-version-workflow
ATorrise Jul 19, 2024
a455d7d
updating reviewers
ATorrise Jul 19, 2024
23dcad1
Merge branch 'zowe-version-workflow' of https://github.com/zowe/zowe-…
ATorrise Jul 19, 2024
4ad1dfa
lint: fix lint warnings plus address PR feedback :yum:
zFernand0 Jul 22, 2024
d9e27ff
test: add small unit test for getCurrentCredMgr :yum:
zFernand0 Jul 22, 2024
05fd25e
Merge branch 'next' of https://github.com/zowe/zowe-cli into ze-2622
zFernand0 Jul 22, 2024
dcf03ef
lint: fix final lint warning :yum:
zFernand0 Jul 22, 2024
4ed571a
audit: finx dev-vuln and address more PR feedback :yum:
zFernand0 Jul 22, 2024
b106f17
fix: allow for credMgr = false
zFernand0 Jul 22, 2024
a5070b0
test: fix final unit test :yum:
zFernand0 Jul 23, 2024
f33275f
Merge branch 'master' into update-next
t1m0thyj Jul 23, 2024
aef0df5
Fix lint issues
t1m0thyj Jul 23, 2024
d510017
Update changelog to remove duplicate notes
t1m0thyj Jul 23, 2024
66b3d2d
Merge pull request #2195 from zowe/ze-2622
zFernand0 Jul 23, 2024
61087b8
Merge branch 'next' into update-next
t1m0thyj Jul 23, 2024
7b5f3e1
Merge pull request #2201 from zowe/update-next
t1m0thyj Jul 23, 2024
b554743
Bump version to 8.0.0-next.202407232256 [ci skip]
zowe-robot Jul 23, 2024
482951a
Update RELEASE_HISTORY.md to what it is expected to be
ATorrise Jul 24, 2024
0ba8eee
Update .github/workflows/zoweReleaseVersion.yaml
ATorrise Jul 24, 2024
22118b7
Update zoweReleaseVersion.yaml
ATorrise Jul 24, 2024
be2f4f4
Merge branch 'next' into zowe-version-workflow
ATorrise Jul 24, 2024
119301b
Update RELEASE_HISTORY.md with Ana's suggestions
ATorrise Jul 25, 2024
e3a8bcd
lowercasing the v for versioning where appropriate
ATorrise Jul 25, 2024
15bbd2a
ensured workflow works in my forked repo after these final changes
ATorrise Jul 25, 2024
3591c80
Update next with changes from master
t1m0thyj Jul 26, 2024
e4918c7
Fix import and update changelog
t1m0thyj Jul 26, 2024
743182b
Fix CommandProcessor unit test
t1m0thyj Jul 26, 2024
dd14d3f
Merge pull request #2210 from zowe/update-next
t1m0thyj Jul 26, 2024
64930b9
Bump version to 8.0.0-next.202407262216 [ci skip]
zowe-robot Jul 26, 2024
021add4
Update to .github/updateReleaseMarkdown.js with Trae's suggestion
ATorrise Jul 29, 2024
8fcf2b0
fix
ATorrise Jul 29, 2024
7b3baa3
keeping work towards table of cli squad but removing it from needing …
ATorrise Jul 29, 2024
acafe24
Merge branch 'next' into zowe-version-workflow
ATorrise Jul 29, 2024
5a00263
Update package.json
ATorrise Jul 29, 2024
1ec04a6
spelling xD
ATorrise Jul 29, 2024
8f32340
Merge pull request #2200 from zowe/zowe-version-workflow
ATorrise Jul 29, 2024
80c0e97
Bump version to 8.0.0-next.202407291826 [ci skip]
zowe-robot Jul 29, 2024
345d726
ssh keyPassphrase prompt snapshot
jace-roell Jul 30, 2024
4f8061f
Merge remote-tracking branch 'origin/master' into update-with-master
awharn Jul 31, 2024
4e11403
Merge pull request #2213 from zowe/update-with-master
zFernand0 Jul 31, 2024
b600db9
Bump version to 8.0.0-next.202407311544 [ci skip]
zowe-robot Jul 31, 2024
ae93e64
added 3 attempts for keyPassphrase in the event there is no stored/st…
jace-roell Aug 1, 2024
20638f7
Merge branch 'next' into ssh-keypassphrase-prompt
jace-roell Aug 1, 2024
ad9916c
fix changelog
jace-roell Aug 1, 2024
d0d8a97
fix changelog 2
jace-roell Aug 1, 2024
eec34ce
added test
jace-roell Aug 1, 2024
a83895d
fixed unit tests and added documentation
jace-roell Aug 2, 2024
d02ba31
remove unused snapshot
jace-roell Aug 2, 2024
4a69585
resolved syntax and changelog
jace-roell Aug 5, 2024
1b6f2f1
fix changelog
jace-roell Aug 5, 2024
b1476a9
fix isGivenValueValid typing
jace-roell Aug 5, 2024
d9a840e
fix definition
jace-roell Aug 5, 2024
246fe53
fixed typing on answers for prompts
jace-roell Aug 5, 2024
fd2eeed
generalized propsToPrmoptFor to not only utilize keyPassphrase
jace-roell Aug 5, 2024
5a071f3
added ConnectionPropForSessCfg test
jace-roell Aug 6, 2024
217e5ac
propsToPromptFor() description
jace-roell Aug 6, 2024
563788f
fixed linting errors
jace-roell Aug 6, 2024
e9c0941
remove snapshot
jace-roell Aug 6, 2024
89f2533
secureSessCfgProps back to private
jace-roell Aug 6, 2024
5c0fdfd
implemented IPropsToPromptFor.ts and fixed typing for setTypeForToken…
jace-roell Aug 7, 2024
feac0a8
explicitly import ISession and add license header
jace-roell Aug 7, 2024
bbfa3cf
changelog and linting
jace-roell Aug 8, 2024
3d6340e
Merge remote-tracking branch 'origin/master' into update-next-with-ma…
awharn Aug 8, 2024
2fc3819
Update handler and changelog
awharn Aug 8, 2024
21691cf
Fix Local MacOS Test Failures
awharn Aug 9, 2024
409341a
Fix unused imports
awharn Aug 9, 2024
cadf0b5
Fix bad shrinkwrap after merge
awharn Aug 9, 2024
5b9988a
added support for case when the local private key is fake and should …
jace-roell Aug 9, 2024
ff16d35
changelog
jace-roell Aug 9, 2024
d64090a
Merge pull request #2214 from zowe/ssh-keypassphrase-prompt
t1m0thyj Aug 9, 2024
61fb475
Bump version to 8.0.0-next.202408092029 [ci skip]
zowe-robot Aug 9, 2024
72668a1
Merge remote-tracking branch 'origin/next' into update-next-with-master
awharn Aug 12, 2024
55204b0
Merge pull request #2228 from zowe/update-next-with-master
awharn Aug 13, 2024
8d51fac
Bump version to 8.0.0-next.202408131445 [ci skip]
zowe-robot Aug 13, 2024
64ebe3c
On (no branch): stash
jace-roell Aug 14, 2024
89da6b0
shrinkwrap update
jace-roell Aug 14, 2024
46dcb99
changelog
jace-roell Aug 14, 2024
dbb9da5
added removed test
jace-roell Aug 14, 2024
cf009d2
consolidated code
jace-roell Aug 15, 2024
0047912
linting
jace-roell Aug 15, 2024
f166378
ssh definition fix
jace-roell Aug 15, 2024
7923aea
removed parameter from helper function
jace-roell Aug 15, 2024
e10af2e
fix
jace-roell Aug 15, 2024
237513b
Merge pull request #2236 from zowe/update-next
t1m0thyj Aug 19, 2024
6ab6ea9
Bump version to 8.0.0-next.202408191401 [ci skip]
zowe-robot Aug 19, 2024
a0fb714
Implement fix for #1881
awharn Aug 20, 2024
2a2d446
Handle floating point values in addition to integers
awharn Aug 20, 2024
4712e63
Rename Proxy class to ProxySettings
t1m0thyj Aug 21, 2024
12d117e
Fix import in AbstractRestClient unit test
t1m0thyj Aug 21, 2024
e5e55bb
Make yargsConfiguration readonly
awharn Aug 21, 2024
184bb4c
Make yargsConfiguration values readonly
awharn Aug 21, 2024
6ce1d1a
WIP Remove remaining references to V1 profiles
t1m0thyj Aug 21, 2024
708e04c
Also set aliases, camel case, and kebab case options
awharn Aug 21, 2024
7e4dd5d
Add additional syntax validation checks for aliases and camelCase
awharn Aug 21, 2024
1de341e
Assert to typescript that we know better.
awharn Aug 21, 2024
29776af
Remove V1 profiles from integration tests
t1m0thyj Aug 22, 2024
c37e3b0
Fix lint errors
t1m0thyj Aug 22, 2024
cad2e86
Restore help commands test to old location
t1m0thyj Aug 22, 2024
96723b6
Add prompting unit tests and deprecate more V1 stuff
t1m0thyj Aug 22, 2024
48fa3da
Fix code smells and update changelog
t1m0thyj Aug 23, 2024
89b4e46
Merge pull request #2237 from zowe/yargs-fixes-strings-and-numbers
t1m0thyj Aug 23, 2024
d929652
Merge branch 'next' into v3/rename-proxy-class
t1m0thyj Aug 23, 2024
6f67d4b
Merge pull request #2238 from zowe/v3/rename-proxy-class
t1m0thyj Aug 23, 2024
3b712a1
Bump version to 8.0.0-next.202408231832 [ci skip]
zowe-robot Aug 23, 2024
e6f738e
feat: add secureFieldsWithDetails :yum:
zFernand0 Aug 23, 2024
29607bd
Update micromatch dependency
t1m0thyj Aug 26, 2024
7461902
Use the IProfArgAttrs interface (tentative) :yum:
zFernand0 Aug 26, 2024
1b28916
update changelog
zFernand0 Aug 26, 2024
d0e406c
Merge branch 'next' of https://github.com/zowe/zowe-cli into fix/ze-2982
zFernand0 Aug 26, 2024
9e77bf9
audit: update dev dependency version :yum:
zFernand0 Aug 26, 2024
cf06aa0
tests: rename function in ConfigSecure and add unit tests :yum:
zFernand0 Aug 26, 2024
a592174
Merge pull request #2244 from zowe/v3/update-micromatch
zFernand0 Aug 26, 2024
7139287
fix: simplify both APIs adn added unit test :yum:
zFernand0 Aug 26, 2024
8d81d9e
Bump version to 8.0.0-next.202408261543 [ci skip]
zowe-robot Aug 26, 2024
23dec8a
Merge branch 'next' of https://github.com/zowe/zowe-cli into fix/ze-2982
zFernand0 Aug 26, 2024
ed4498a
fix: add types to all missing arguments based on schema definition
zFernand0 Aug 26, 2024
4eafe92
Merge branch 'next' into fix/ze-2982
zFernand0 Aug 26, 2024
4dba296
Merge branch 'next' into v3/remove-old-profiles
t1m0thyj Aug 27, 2024
2f41f92
Merge pull request #2239 from zowe/v3/remove-old-profiles
zFernand0 Aug 27, 2024
35b9d47
Merge branch 'next' of https://github.com/zowe/zowe-cli into fix/ze-2982
zFernand0 Aug 27, 2024
25ee4da
Bump version to 8.0.0-next.202408271330 [ci skip]
zowe-robot Aug 27, 2024
dc945c7
Merge branch 'next' of https://github.com/zowe/zowe-cli into fix/ze-2982
zFernand0 Aug 27, 2024
fa7bcd4
Merge pull request #2241 from zowe/fix/ze-2982
traeok Aug 29, 2024
8e8dee3
Bump version to 8.0.0-next.202408291544 [ci skip]
zowe-robot Aug 29, 2024
1557332
Remove remaining references to V1 profiles pt 2
t1m0thyj Aug 29, 2024
ef6198b
Fix lint warning
t1m0thyj Aug 29, 2024
db0864b
Merge branch 'next' into fix/remove-v1-profiles
t1m0thyj Aug 29, 2024
b3c3c56
Rename Config.secureFieldsForLayer method
t1m0thyj Aug 29, 2024
8f91eda
Fix unused variable in test
t1m0thyj Aug 29, 2024
bd6d1c5
Fix broken unit tests
t1m0thyj Aug 29, 2024
937889e
Update deprecation replacements in changelog
t1m0thyj Aug 30, 2024
c97f026
Merge pull request #2249 from zowe/fix/remove-v1-profiles
t1m0thyj Aug 30, 2024
5a03a92
Bump version to 8.0.0-next.202408301809 [ci skip]
zowe-robot Aug 30, 2024
b817a07
Merge remote-tracking branch 'origin/master' into merge-master-into-next
awharn Sep 9, 2024
d0e7fe6
Merge pull request #2258 from zowe/merge-master-into-next
zFernand0 Sep 9, 2024
65f978b
Bump version to 8.0.0-next.202409091603 [ci skip]
zowe-robot Sep 9, 2024
c706362
Ignore warning for unmaintained component
awharn Sep 11, 2024
570b424
Merge pull request #2261 from zowe/update-audit-v3
zFernand0 Sep 11, 2024
024d0dc
Bump version to 8.0.0-next.202409111528 [ci skip]
zowe-robot Sep 11, 2024
68e05b5
Merge branch 'master' into update-next
t1m0thyj Sep 18, 2024
c969142
Update release config and finalize zoweVersion
t1m0thyj Sep 18, 2024
5974e7b
Merge pull request #2267 from zowe/update-next
zFernand0 Sep 19, 2024
1941726
Third-Party DCO Remediation Commit for jace-roell <jace.roell@hotmail…
zFernand0 Sep 19, 2024
aee5859
Chore: Update changelogs :yum:
zFernand0 Sep 19, 2024
3929ee3
chore: update cli_test_utils changelog
zFernand0 Sep 19, 2024
5cdbb17
Merge pull request #2269 from zowe/fix-dco
zFernand0 Sep 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module.exports = {
"rules": {
"max-len": ["warn", 150],
"no-console": "error",
"no-extra-parens": "error",
"no-multiple-empty-lines": "warn",
"no-trailing-spaces": "warn",
"@typescript-eslint/ban-types": "off",
Expand Down
65 changes: 65 additions & 0 deletions .github/updateReleaseMarkdown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
const fs = require('fs');
const path = require('path');

const mdFilePath = path.join(__dirname, '../RELEASE_HISTORY.md');

// Build the new row to be added
const newRow = `| v${process.env.NEW_VERSION} | ${new Date().toISOString().split('T')[0].slice(0, 7)} | **Active** | [Release Notes](https://docs.zowe.org/stable/whats-new/release-notes/v${process.env.NEW_VERSION.replace(/\./g, '_')}) |`;

// Read, Update and Write to Markdown File
function updateReleaseHistory(newRow) {
fs.readFile(mdFilePath, 'utf8', (err, data) => {
if (err) {
console.error('Error reading the file:', err);
return;
}

// Find the table and insert the new row after the second row
const lines = data.split('\n');
let tableLineCount = 0;
for (let i = 0; i < lines.length; i++) {
if (lines[i].startsWith('|') && lines[i].endsWith('|')) {
tableLineCount++;
if (tableLineCount === 2) {
// Insert the new row after the second row
lines.splice(i + 1, 0, newRow);
break;
}
}
}

fs.writeFile(mdFilePath, lines.join('\n'), 'utf8', (err) => {
if (err) {
console.error('Error writing the file:', err);
return;
}
console.log('Markdown file updated successfully.');
});
});
}

// Update the zoweVersion in package.json
function updatePackageJsonVersion(newVersion) {
const packageJsonPath = path.join(__dirname, '../packages/cli/package.json');
fs.readFile(packageJsonPath, 'utf8', (err, data) => {
if (err) {
console.error('Error reading package.json:', err);
return;
}

let packageJson = JSON.parse(data);
packageJson.zoweVersion = `v${newVersion}`;

fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf8', (err) => {
if (err) {
console.error('Error writing to package.json:', err);
return;
}
console.log('package.json updated successfully.');
});
});
}

// Execute the functions
updatePackageJsonVersion(process.env.NEW_VERSION);
updateReleaseHistory(newRow);
111 changes: 111 additions & 0 deletions .github/updateReleaseMarkdown_BROKEN.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
const fs = require('fs');
const path = require('path');
const https = require('https');

// This script is attempting to add whatever list of the CLI team is shown in the TSC repo https://raw.githubusercontent.com/zowe/community/master/COMMITTERS.md.
// Despite efforts, this is not working. Adam will always be cut off (possibly just whoever is first in the table).
// Leaving this code present and hoping that the problem with this file can be solved in the future.

// URL of the raw markdown file to be appended to RELEASE_HISTORY.md
const url = 'https://raw.githubusercontent.com/zowe/community/master/COMMITTERS.md';

// Build the new row to be added
const newVersion = process.env.NEW_VERSION;
const newRow = `| v${newVersion} | ${new Date().toISOString().split('T')[0].slice(0, 7)} | **Active** | [Release Notes](https://docs.zowe.org/stable/whats-new/release-notes/v${newVersion.replace(/\./g, '_')}) |`;

const mdFilePath = path.join(__dirname, '../RELEASE_HISTORY.md');

// Function to fetch CLI team from a URL
function fetchCliTeam(url) {
return new Promise((resolve, reject) => {
https.get(url, (res) => {
let data = '';

// A chunk of data has been received
res.on('data', (chunk) => {
data += chunk;
});

// The whole response has been received
res.on('end', () => {
// Extract only the CLI contributors section
const cliSectionMatch = data.match(/### Zowe CLI Squad[\s\S]*?(?=###|$)/);
const cliSection = cliSectionMatch ? cliSectionMatch[0] : '';
resolve(cliSection);
});
}).on('error', (err) => {
reject(err);
});
});
}

// Function to remove existing CLI team section and append new one
function updateCliTeamInMd(cliTeam) {
// Read the current content of the markdown file
fs.readFile(mdFilePath, 'utf8', (err, data) => {
if (err) {
console.error('Error reading the file:', err);
return;
}

// Remove the old CLI squad section and replace it with the new one
const updatedData = data.replace(/### Zowe CLI Squad[\s\S]*?(?=###|$)/, cliTeam + '\n');

// Write the updated data back to the file
fs.writeFile(mdFilePath, updatedData, 'utf8', (err) => {
if (err) {
console.error('Error writing the file:', err);
return;
}
console.log('CLI team has been updated in RELEASE_HISTORY.md successfully.');
});
});
}

// Main function to fetch CLI team and update RELEASE_HISTORY
async function appendCliTeam() {
try {
const cliTeam = await fetchCliTeam(url);
updateCliTeamInMd(cliTeam);
} catch (error) {
console.error('Error fetching CLI team:', error);
}
}

// Read, Update and Write to Markdown File
function updateReleaseHistory(newRow) {
fs.readFile(mdFilePath, 'utf8', (err, data) => {
if (err) {
console.error('Error reading the file:', err);
return;
}

// Find the table and insert the new row after the second row
const lines = data.split('\n');
let tableLineCount = 0;
for (let i = 0; i < lines.length; i++) {
if (lines[i].startsWith('|') && lines[i].endsWith('|')) {
tableLineCount++;
if (tableLineCount === 2) {
// Insert the new row after the second row
lines.splice(i + 1, 0, newRow);
break;
}
}
}

fs.writeFile(mdFilePath, lines.join('\n'), 'utf8', (err) => {
if (err) {
console.error('Error writing the file:', err);
return;
}
console.log('Markdown file updated successfully.');
});
});
}

// Execute the two main functions
(async () => {
await appendCliTeam();
updateReleaseHistory(newRow);
})();
17 changes: 7 additions & 10 deletions .github/workflows/secrets-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jobs:
settings:
- host: macos-latest
target: x86_64-apple-darwin
build: |
npm run build
build: npm run build -- --target x86_64-apple-darwin
- host: windows-latest
build: npm run build
build: npm run build -- --target x86_64-pc-windows-msvc
target: x86_64-pc-windows-msvc
- host: windows-latest
build: |
Expand Down Expand Up @@ -67,13 +66,7 @@ jobs:
CARGO=cross npm run build -- --target x86_64-unknown-linux-musl
- host: macos-latest
target: aarch64-apple-darwin
build: |
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
export CC=$(xcrun -f clang);
export CXX=$(xcrun -f clang++);
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
npm run build -- --target aarch64-apple-darwin
build: npm run build -- --target aarch64-apple-darwin
- host: ubuntu-latest
target: aarch64-unknown-linux-gnu
use-cross: true
Expand Down Expand Up @@ -210,8 +203,11 @@ jobs:
settings:
- host: windows-latest
target: x86_64-pc-windows-msvc
- host: macos-latest
target: aarch64-apple-darwin
- host: macos-latest
target: x86_64-apple-darwin
architecture: x64
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
- host: ubuntu-latest
Expand All @@ -237,6 +233,7 @@ jobs:
node-version: ${{ matrix.node }}
check-latest: true
cache: npm
architecture: ${{ matrix.settings.architecture }}
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Download artifacts
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/zoweReleaseVersion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Update Zowe Version and Create PR

on:
workflow_dispatch:
inputs:
major_version:
description: 'Major version (default is 3)'
required: true
default: '3'
minor_version:
description: 'Minor version'
required: true
patch_version:
description: 'Patch version'
required: true

jobs:
update_versions_and_create_pr:
runs-on: ubuntu-latest

steps:
- name: Checkout CLI Repo
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Set Variables and Ensure Increase in Semver
id: get_zowe_versions
run: |
current_version=$(jq -r '.zoweVersion' packages/cli/package.json)
current_version="${current_version#v}" # Strip the 'v' prefix
echo "current_version=$current_version" >> $GITHUB_ENV
new_version="${{ github.event.inputs.major_version }}.${{ github.event.inputs.minor_version }}.${{ github.event.inputs.patch_version }}"
echo "new_version=$new_version" >> $GITHUB_ENV
echo "PACKAGE_JSON_PATH=packages/cli/package.json" >> $GITHUB_ENV
if [[ "$new_version" < "$current_version" ]]; then
echo "Error: New version $new_version is not greater than current version $current_version."
exit 1
fi

- name: Create Branch
run: |
branch_name="update-version-v${{ env.new_version }}"
echo "branch_name=$branch_name" >> $GITHUB_ENV
git checkout -b "$branch_name"

- name: Update Zowe Version in cli/package.json
run: |
jq ".zoweVersion = \"v${{ env.new_version }}\"" ${{ env.PACKAGE_JSON_PATH }} > package.tmp.json && mv package.tmp.json ${{ env.PACKAGE_JSON_PATH }}

- name: Update RELEASE_HISTORY.md
run: node ".github/updateReleaseMarkdown.js"
env:
NEW_VERSION: ${{ env.new_version }}

- name: Commit and Push Changes
run: |
git config --global user.name "${{ secrets.ZOWE_ROBOT_USER }}"
git config --global user.email "${{ secrets.ZOWE_ROBOT_EMAIL }}"
git add "${{ env.PACKAGE_JSON_PATH }}"
git add "RELEASE_HISTORY.md"
git commit -sm "Update version to ${{ env.new_version }}"
git push origin "$branch_name"

- name: Create Pull Request
run: |
pr_title="Update CLI version to ${{ env.new_version }}"
base_branch="${{ github.ref_name }}"
gh pr create -t "$pr_title" -b "$base_branch" --head "$branch_name" --body "Updating Zowe CLI version to ${{ env.new_version }}" --reviewer zFernand0,t1m0thyj,awharn,gejohnston,traeok,jace-roell,ATorrise
env:
GH_TOKEN: ${{ secrets.ZOWE_ROBOT_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ packages/imperative/web-help/dist/css/bundle*
packages/imperative/web-help/dist/js/

jest-stare/
jest.user.config.js
jest.user.config.js
10 changes: 8 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,20 @@ Add an entry to changelog.md for any PR that introduces a feature, enhancement,
**Each changelog entry must:**
- Describe the change and how it impacts end users.
- Include a relevant Issue # or Pull Request #.
- Include one of the following prefixes:
- `BugFix` - If a fix was added
- `Enhancement` - If a feature or enhancement was introduced
- For breaking changes (only allowed for PRs merged into the "next" branch):
- `LTS Breaking` - If behavior has changed since the last LTS release
- `Next Breaking` - If behavior has changed since an earlier vNext prerelease

The following is an example of the markdown that you should insert into the changelog above the last-released version:

```
## Recent Changes

- Document your changes here. [Issue# or PR#](link-to-issue-or-pr)
- Document another change here. [Issue# or PR#](link-to-issue-or-pr)
- BugFix: Describe the bug fix here. [Issue# or PR#](link-to-issue-or-pr)
- Enhancement: Describe the enhancement here. [Issue# or PR#](link-to-issue-or-pr)
```

**Tips:**
Expand Down
Loading
Loading