Skip to content
Snippets Groups Projects
Commit 47bf4501 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: better serialize content fields

parent 97ea483f
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,12 @@ function configSerializer(config) {
'forkToken',
];
const templateFields = ['commitMessage', 'prTitle', 'prBody'];
const contentFields = [
'content',
'contents',
'packageLockParsed',
'yarnLockParsed',
];
// eslint-disable-next-line array-callback-return
return traverse(config).map(function scrub(val) {
if (val && redactedFields.indexOf(this.key) !== -1) {
......@@ -23,7 +29,7 @@ function configSerializer(config) {
if (val && templateFields.indexOf(this.key) !== -1) {
this.update('[Template]');
}
if (this.key === 'content' || this.key === 'contents') {
if (val && contentFields.includes(this.key)) {
this.update('[content]');
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment