<commit_before>const { parseRawCommit } = require('conventional-changelog/lib/git')

module.exports = function (pluginConfig, {commits}, cb) {
  let type = null

  commits

  .map((commit) => parseRawCommit(`${commit.hash}\n${commit.message}`))

  .filter((commit) => !!commit)

  .every((commit) => {
    if (commit.breaks.length) {
      type = 'prerelease'
      return false
    }

    if (commit.type === 'feat') type = 'prerelease'

    if (!type && commit.type === 'fix') type = 'prerelease'

    return true
  })

  if(type) {
      process.env.PROJECT_HAS_CHANGES = 'true';  
  }

  cb(null, type)
}<commit_msg>chore: Trying to export PROJECT_HAS_CHANGES variable via execSync<commit_after>const { parseRawCommit } = require('conventional-changelog/lib/git')

module.exports = function (pluginConfig, {commits}, cb) {
  let type = null

  commits

  .map((commit) => parseRawCommit(`${commit.hash}\n${commit.message}`))

  .filter((commit) => !!commit)

  .every((commit) => {
    if (commit.breaks.length) {
      type = 'prerelease'
      return false
    }

    if (commit.type === 'feat') type = 'prerelease'

    if (!type && commit.type === 'fix') type = 'prerelease'

    return true
  })

  if(type) {
     require('child_process').execSync('export PROJECT_HAS_CHANGES=true');
      //process.env.PROJECT_HAS_CHANGES = 'true';
  }

  cb(null, type)
}
{'fraction_non_alphanumeric': 0.16971470373079736, 'fraction_numerical': 0.0, 'mean_word_length': 3.412903225806452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4978036', 'n_tokens_mistral': 486, 'n_tokens_neox': 463, 'n_words': 91}