Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed May 10, 2022
1 parent 99a2cfa commit 1540971
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 20 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Node CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
env:
NAME: git-status-porcelain

strategy:
matrix:
node-version:
- 16.x
- 18.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Redrun
run: npm i redrun -g

- name: Install
run: npm i

- name: Lint
run: redrun fix:lint
- name: Commit fixes
uses: EndBug/add-and-commit@v7
with:
message: chore(${{ env.NAME }}) lint using actions
- name: Coverage
run: redrun coverage report
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: typos-action
uses: crate-ci/typos@v1.0.4
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

10 changes: 10 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--
Thank you for reporting an issue. Please fill in the template below. If unsure
about something, just do as best as you're able.
-->

- **Version** (`redrun -v`):
- **Node Version** `node -v`:
- **OS** (`uname -a` on Linux):
- **Browser name/version**:
- **Used Command Line Parameters**:
8 changes: 8 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!--
Thank you for making pull request. Please fill in the template below. If unsure
about something, just do as best as you're able.
-->

- [ ] commit message named according to [Contributing Guide](https://github.com/coderaiser/cloudcmd/blob/master/CONTRIBUTING.md "Contributting Guide")
- [ ] `npm run codestyle` is OK
- [ ] `npm test` is OK
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ const {run, parse, pick, getNames} = porcelain;
const stdout = run();
// returns
' M README.md\n?? 1.js\n'
>

const files = parse(stdout);
// returns
[ { name: 'README.md', mode: ' M ' }, { name: '1.js', mode: '?' } ]

const modifiedFiles = pick(files, {
modified: false, // default
modified: true,
untracked: false, // default
deleted: false, // default
added: false, // default
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@putout/git-status-porcelain",
"version": "1.1.0",
"commitType": "colon",
"description": "parse git status --porclain output with a pleasure",
"main": "lib/porcelain.js",
"scripts": {
Expand Down

0 comments on commit 1540971

Please sign in to comment.