Skip to content

Is there a way to return the full commit hash using the commit method? #782

@josecelano

Description

@josecelano

I would like the .commit function to return the full commit hash instead of df462c39:

{
  author: {
    email: 'bot@nautilus-cyberneering.de',
    name: 'NautilusCyberneering[bot]'
  },
  branch: 'issue-22-job-commit-not-created',
  commit: 'df462c39',
  root: false,
  summary: { changes: 0, insertions: 0, deletions: 0 }
}

But it seems there is no option also in Git to do it. Apparently, the only option to do it is by using the low-level command git commit-tree.

I see you do not have a wrapper for it and I should use the .raw method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions