Skip to content

Commit

Permalink
setup v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
avallete committed Jul 1, 2021
0 parents commit b1dcafe
Show file tree
Hide file tree
Showing 14 changed files with 37,315 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 4
indent_style = tab

[{*.yaml,*.yml}]
indent_size = 2
indent_style = space

[{*.js,*.json,*.ts}]
indent_size = 2
indent_style = space

[{*.htm,*.html}]
indent_size = 4
indent_style = space

3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
lib/
node_modules/
29 changes: 29 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"plugins": ["jest", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:github/es6",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"eslint-comments/no-use": "off",
"import/no-namespace": "off",
"camelcase": "off",
"@typescript-eslint/explicit-function-return-type": [ "error", { "allowExpressions": true }],
"@typescript-eslint/indent": "off",
"@typescript-eslint/camelcase": "off"
},
"env": {
"node": true,
"es6": true,
"jest/globals": true
}
}
70 changes: 70 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
node_modules/

# Editors
.vscode

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Other Dependency directories
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# Ignore built ts files
__tests__/runner/*
/lib/
/target/
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
lib/
node_modules/
11 changes: 11 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"parser": "typescript"
}
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

# Pass all associated PR to draft

This actions can be called on "push" branch events.
It's gonna gather all opened PR's for the branch and pass them to draft.

```
- name: Pass all the associated open PR's to draft
uses: Clovis-team/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```

## How to do a new release:

Change the code, then:
```
npm run all
git add -A; git commit -m ""; git push
```

On github, draft a new release
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Pass all associated open PR to draft'
description: 'Pass all associated open PR to draft'
author: 'Andrew Valleteau'
branding:
icon: 'package'
color: 'blue'
inputs:
github_token:
description: 'The GitHub token (if not provided the environment variable GITHUB_TOKEN will be used instead)'
required: false

runs:
using: 'node12'
main: 'dist/index.js'
Loading

0 comments on commit b1dcafe

Please sign in to comment.