Coder Social home page Coder Social logo

git-last-commit's People

Contributors

arduano avatar dannycochran avatar dependabot[bot] avatar haykam821 avatar seymen avatar shwarcu avatar zuzak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

git-last-commit's Issues

Should execute the git command in the context of the working directory

I wrote this tool to update changelogs with the latest git commit info, and I noticed when I install it globally, the git info seems to be coming from the global path to which it was installed to, vs the working directory of my project.

If I install it locally to the project and execute it via npm run, then there's no problem.

Can we get an option to set the execution context of the git command to pwd()?

Heroku deploy

I'm trying to deploy a bot with your repository on Heroku but when execute de command that show me the github information it give me this error this does not look like a git repo

Any idea of how can I solve it? (In localhost works fine)

git-tags not shown

I'm using git tag -a tagname -m "tag description" to add tags. They are listed when typing git tag. Nevertheless they don't show up when using this module. I'd expect them to be located in the object at {tags:[...]}

git version: 2.7.4
git-last-commit version: 0.2.0

A commit message containing a comma causes everything to break

Because the commit data is parsed by splitting on a comma, any commit message that contains a comma will cause everything to be parsed in the wrong place.

Steps to repro:

  1. Make a commit with the commit message foo, bar
  2. Get the git-last-commit of that commit; many data fields are incorrect

A commit containing a line break in its message causes a wrong parse of contents

Hi!

This module isn't working properly if the commit message contains line breaks. This is what I get when the message body for the last commit is the following:

Envío de vídeos al servidor

- API para recibir solicitud de envíos.
- Script para enviar los archivos (php).
{ shortHash: '7fac2b2',
  hash: '7fac2b2f2c117e4d66c0c159f0bfadeffa7cf75e',
  subject: 'Envío de vídeos al servidor',
  sanitizedSubject: 'Env-o-de-v-deos-al-servidor',
  body: '- API para recibir solicitud de envíos.',
  authoredOn: '- Script para enviar los archivos (php).',
  committedOn: '',
  author: { name: '1506077654', email: '1506077654' },
  committer: { name: 'Iván Pérez', email: 'ivan@*****.com' },
  notes: 'Iván Pérez',
  branch: 'ivan@*****.com',
  tags: [] } 

Everything is messed up. Is there any workaround to avoid that? Thanks!!

Commits with comma in the Subject aren't parsed correctly

The use of ',' as the splitCharacter means that valid input which contains commas breaks parsing.

Instead, a deep-unicode character could be used

eg.

JIRA-43543 I did this, and that. (#21483)

is parsed as

JIRA-43543 I did this

What is the format of commitedOn date?

I am trying to get readable date from commitedOn like this:
new Date(Date.now() + +commitedOn).toISOString().slice(0, 10)
My current date is 2017-04-14 but it shows 2017-05-01.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.