Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Automate revirew comments to PR by textlint

License

NotificationsYou must be signed in to change notification settings

yuichielectric/danger-textlint-actions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This GitHub Action submits textlint review comments if there are violations.

Sample repository

Here is thesample repository I've set up the automation.

Set up

To set up the textlint, you need to

  1. set up textlint
  2. set up workflow

1. Set up textlint

To set up textlint, we needpackage.json,Dangerfile and.textlintrc. Here are the examples:

package.json

{"name":"danger-textlint-actions-demo","version":"1.0.0","dependencies": {"textlint":"^11.2.3","textlint-rule-preset-japanese":"^2.0.1"  }}

Dangerfile

textlint.max_severity="warn"textlint.lint

.textlintrc

{"filters": {},"rules": {"preset-japanese":true  }}

2. Set up workflow

An example workflow looks like this:

on:pull_requestname:textlintjobs:textlint:name:textlintruns-on:ubuntu-lateststeps:      -uses:actions/checkout@master      -uses:actions/setup-node@v1with:node-version:10.*      -run:npm install      -name:dangeruses:yuichielectric/danger-textlint-actions@masterenv:GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}

License

MIT

About

Automate revirew comments to PR by textlint

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

[8]ページ先頭

©2009-2025 Movatter.jp