Code Monkey home page Code Monkey logo

Comments (7)

Siilwyn avatar Siilwyn commented on May 25, 2024 1

💭 We can add a npm script that does master pull > soft reset > npm run commit. To make the workflow a bit easier.

from nodejs.

adnasa avatar adnasa commented on May 25, 2024

yeah I would go for that approach too, @Siilwyn

from nodejs.

hisabimbola avatar hisabimbola commented on May 25, 2024

@Siilwyn is this

We can add a npm script that does master pull > soft reset > npm run commit. To make the workflow a bit easier.

I don't quite understand how this is going to work? CI or after merging?

from nodejs.

Siilwyn avatar Siilwyn commented on May 25, 2024

@hisabimbola let me try to explain by example:

  1. Open PR with some commits
  2. CI checks PR including the commit message format
  3. ...
  4. PR ready to merge, only way to merge is rebasing
  5. Run npm run pr locally > fill in commit message
  6. Force push to PR branch
  7. Rebase PR

This way an incorrectly formatted commit message can never make it's way into master.

from nodejs.

hisabimbola avatar hisabimbola commented on May 25, 2024

There is need to squash some commits, how to that come in if the only way to merge is rebasing.

Also when PR is ready to merge, what will you be committing?

from nodejs.

Siilwyn avatar Siilwyn commented on May 25, 2024

There is need to squash some commits, how to that come in if the only way to merge is rebasing.

The 'squashing' is done locally.

Also when PR is ready to merge, what will you be committing?

In the end you will commit the commit that was made in step 5.

from nodejs.

wizzy25 avatar wizzy25 commented on May 25, 2024

With the move away from semantic-release in #352, this issue is no longer relevant

from nodejs.

Related Issues (20)

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.