-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 05d40f9
Showing
11 changed files
with
918 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: PR lint | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
pr-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: seferov/pr-lint-action@master | ||
with: | ||
title-regex: '^\[[a-z ]*\] ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
lib/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"bracketSpacing": false, | ||
"arrowParens": "avoid", | ||
"parser": "typescript" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:slim | ||
|
||
COPY . . | ||
|
||
RUN npm install | ||
RUN node_modules/typescript/bin/tsc | ||
|
||
ENTRYPOINT ["node", "/lib/main.js"] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Pull Request Lint | ||
|
||
It is a linter of pull requests for [Github Actions](https://github.com/features/actions). | ||
|
||
## Why? | ||
|
||
To enforce pull request titles in the same format will be useful like generating standard changelog messages . | ||
Besides it can be used to parse titles and link with issue tracking systems such as JIRA. | ||
|
||
## Example: | ||
|
||
```yaml | ||
name: PR lint | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
pr-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: seferov/pr-lint-action@master | ||
with: | ||
title-regex: '^\[PROJECT-\d*\]\ ' | ||
``` | ||
In this example, for every pull request the title is expected to match `^\[PROJECT-\d*\]\ ` regex. For instance, `[PROJECT-123] lorem ipsum` or `[PROJECT-2345] dolor sit amet` are valid titles for this example. You can customize the title regex for your needs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: 'PR Lint GitHub Action' | ||
description: 'PR Lint for Github Actions' | ||
author: 'Farhad Safarov' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' |
Oops, something went wrong.