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

feat: how to get author info in commit log #3735

Open
4 tasks
BTYHunter opened this issue Nov 3, 2023 · 1 comment
Open
4 tasks

feat: how to get author info in commit log #3735

BTYHunter opened this issue Nov 3, 2023 · 1 comment
Labels

Comments

@BTYHunter
Copy link

BTYHunter commented Nov 3, 2023

Expected Behavior

My configuration

const Configuration = {
  rules: {
    'test': [2, 'always']
  },
  plugins: [
    {
      rules: {
        'test': (output) => {
          return handleMessage(output)
        }
      }
    }
  ]
}

Test result say

message:  {
  type: 'chore',
  scope: 'ci',
  subject: '123',
  merge: null,
  header: 'chore(ci): update 11 panel to v10',
  body: 'testaaa' +
    '\n' +
    'Code Source From: Self Code',
  footer: 'Jira: #',
  notes: [],
  references: [
    {
      action: null,
      owner: null,
      repository: null,
      issue: '12',
      raw: 'xx',
      prefix: '#'
    }
  ],
  mentions: [],
  revert: null,
  raw: 'chore(ci): update 11 panel to v10\n' +
    '\n' +
    '\n' +
    'Code Source From: Self Code\n' +
    '\n' +
    'Jira: asdf\n' +
    '\n' +
    '# Please enter the commit message for your changes. Lines starting\n' +
    "# with '#' will be ignored, and an empty message aborts the commit.\n" +
    '#\n' +
    '# On branch test\n' +
    ...
}

There is no author information in output (git log shows).

Current Behavior

No response

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

No response

Context

No response

@mwgamble
Copy link

I would also like this capability. It looks like a big breaking change though - basically everything will need to be re-worked to accept an object rather than a simple string.

My use case is being able to apply specific rules only for Renovatebot, while not permitting such things for all other committers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants