Skip to content

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

Open
@BTYHunter

Description

@BTYHunter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions