-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add serverless template * ignore resizeobserver error * find last two prod commits * add lodash chunk * get all kibana prs between commits * use basehead function * fix types. use package ts * create steps dynamically * add serverless pr filtering * fix output * add missing fields to serverless pr * fix loadPrs for serverless * add error handling * cleanup * add date for serverless template * get deploy tag for date * use tag as serverless version output * repo name * clean up
- Loading branch information
Showing
10 changed files
with
592 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,52 @@ | ||
const webpack = require('webpack'); | ||
|
||
module.exports = (webpackConfig) => { | ||
module.exports = { | ||
webpack: (webpackConfig) => { | ||
webpackConfig.resolve.fallback = { | ||
...webpackConfig.resolve.fallback, | ||
"url": require.resolve("url/"), | ||
"querystring": require.resolve("querystring-es3") | ||
...webpackConfig.resolve.fallback, | ||
url: require.resolve('url/'), | ||
querystring: require.resolve('querystring-es3'), | ||
}; | ||
|
||
const basename = process.env.BASENAME; | ||
if (basename) { | ||
webpackConfig.output.publicPath = `/${basename}/`; | ||
webpackConfig.output.publicPath = `/${basename}/`; | ||
|
||
webpackConfig.plugins.push(new webpack.DefinePlugin({ | ||
_BASENAME_: `'${basename}'` | ||
})); | ||
webpackConfig.plugins.push( | ||
new webpack.DefinePlugin({ | ||
_BASENAME_: `'${basename}'`, | ||
}) | ||
); | ||
} | ||
|
||
return webpackConfig; | ||
} | ||
}, | ||
devServer: (configFunction) => { | ||
return function (proxy, allowedHost) { | ||
// Create the default config | ||
const config = configFunction(proxy, allowedHost); | ||
|
||
config.client = { | ||
...config.client, | ||
overlay: { | ||
...config.client.overlay, | ||
runtimeErrors: (error) => { | ||
/** | ||
* This error occurs every time a version is selected in the wizard, | ||
* and causes the overlay to appear. It is stemming from a package. | ||
*/ | ||
if ( | ||
error?.message === 'ResizeObserver loop completed with undelivered notifications.' | ||
) { | ||
console.error(error); | ||
return false; | ||
} | ||
return true; | ||
}, | ||
}, | ||
}; | ||
|
||
return config; | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import type { Config } from './types'; | ||
|
||
export const serverlessLabels = [ | ||
'Team:SecuritySolution', | ||
'Team: SecuritySolution', | ||
'serverless-bugfix', | ||
'serverless-enhancement', | ||
]; | ||
|
||
export const serverlessTemplate: Config = { | ||
repoName: 'kibana', | ||
includedLabels: serverlessLabels, | ||
excludedLabels: ['backport', 'release_note:skip', 'reverted'], | ||
areas: [ | ||
{ | ||
title: 'Elastic Security', | ||
labels: serverlessLabels, | ||
}, | ||
], | ||
templates: { | ||
pages: { | ||
releaseNotes: `[discrete] | ||
[[release-notes-{{version}}]] | ||
=== {{serverlessReleaseDate}} | ||
{{#prs.breaking}} | ||
[discrete] | ||
[[breaking-changes-{{version}}]] | ||
==== Breaking changes | ||
{{{prs.breaking}}} | ||
{{/prs.breaking}} | ||
{{#prs.deprecations}} | ||
[discrete] | ||
[[deprecations-{{version}}]] | ||
==== Deprecations | ||
{{{prs.deprecations}}} | ||
{{/prs.deprecations}} | ||
{{#prs.features}} | ||
[discrete] | ||
[[features-{{version}}]] | ||
==== New features | ||
{{{prs.features}}} | ||
{{/prs.features}} | ||
{{#prs.enhancements}} | ||
[discrete] | ||
[[enhancements-{{version}}]] | ||
==== Enhancements | ||
{{{prs.enhancements}}} | ||
{{/prs.enhancements}} | ||
{{#prs.fixes}} | ||
[discrete] | ||
[[bug-fixes-{{version}}]] | ||
==== Bug fixes | ||
{{{prs.fixes}}} | ||
{{/prs.fixes}} | ||
`, | ||
}, | ||
prGroup: '{{{prs}}}', | ||
prs: { | ||
breaking: `*{{{title}}}*\n\n!!TODO!!\n\nSee ({kibana-pull}{{number}}[#{{number}}]) for details.\n`, | ||
deprecation: `*{{{title}}}*\n\n!!TODO!!\n\nSee ({kibana-pull}{{number}}[#{{number}}]) for details.\n`, | ||
_other_: | ||
'* {{{title}}} ({kibana-pull}{{number}}[#{{number}}]).' + | ||
'{{#details}}\n////\n!!TODO!! The above PR had a lengthy release note description:\n{{{details}}}\n////{{/details}}', | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.