Code Monkey home page Code Monkey logo

conventional-pr-action's People

Contributors

milesj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

conventional-pr-action's Issues

Repo without package-lock.json error

I have a Kotlin Project so it do not have any package.json/package-lock.json and it crash due to a missing package-lock file

Run beemojs/conventional-pr-action@v2
  with:
    config-preset: angular
    name: Conventionnal Commit
    auto-install: true
    config-version: latest
    require-multiple-commits: false
  env:
    GITHUB_TOKEN: ***
Loading GitHub context and pull request
Installing dependencies with npm
  /usr/local/bin/npm ci
  npm ERR! The `npm ci` command can only install with an existing package-lock.json or
  npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
  npm ERR! later to generate a package-lock.json file, then try again.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/runner/.npm/_logs/2022-01-03T11_31_21_000Z-debug.log
  Error: The process '/usr/local/bin/npm' failed with exit code 1

require-multiple-commits value treated as string

[...]
  if (getInput('require-multiple-commits') && pr.commits < 2)
[...]

getInput() returns string so in case the configuration is require-multiple-commits: false it will not work properly.
getBooleanInput() should be used instead.

Intended behaviour - auto-install still installs when set to false

I am not sure that this action is running correctly, can you confirm if it is supposed to install my npm dependencies given the config below:

name: Check PR title
on:
  pull_request:
    types: [opened, synchronize, reopened, edited]

jobs:
  lint_title:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
      - uses: beemojs/conventional-pr-action@v2
        with:
          require-multiple-commits: false
          auto-install: false
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

If auto-install is set to false does that mean that I need to manually install the beemo preset?

Commits whose titles start with `feat:` are considered invalid

Steps to reproduce:

Actual result:
The validation fails.This does not happen for other valid prefixes, like ci: or docs:. See https://github.com/appium/appium-uiautomator2-driver/runs/8222140787?check_suite_focus=true

Expected result:
All prefixes defined at https://www.conventionalcommits.org/en/v1.0.0/ must be recognized as valid ones.

commit update still considered invalid

Hi,

Not sure if this is a user error (aka me) or bug, but if you do:

  • PR with a commit message that is not a conventional commit
  • Action fails due to invalid commit !
  • User does a rebase and updates commit message
  • git push --force origin branch name
  • this updates github and i see the commits show up as coventional commits
  • job reruns
  • job fails again saying:
    image

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.