Skip to content

Commit

Permalink
Merge pull request #70 from peter-evans/dev
Browse files Browse the repository at this point in the history
v2
  • Loading branch information
peter-evans authored Jul 25, 2020
2 parents 4a930f9 + 58e77de commit d09e9c6
Show file tree
Hide file tree
Showing 32 changed files with 9,499 additions and 27,513 deletions.
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/
34 changes: 18 additions & 16 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
}
}
"env": { "node": true, "jest": true },
"parser": "@typescript-eslint/parser",
"parserOptions": { "ecmaVersion": 9, "sourceType": "module" },
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/camelcase": "off"
}
}
15 changes: 12 additions & 3 deletions .github/slash-command-dispatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@
"command": "create",
"permission": "write",
"issue_type": "issue",
"event_type_suffix": "-cmd",
"named_args": true
"event_type_suffix": "-cmd"
},
{
"command": "delete",
"permission": "write",
"issue_type": "both",
"allow_edits": true
"allow_edits": true,
"static_args": [
"some-unnamed-arg",
"foo=bar"
]
},
{
"command": "update",
"permission": "write",
"issue_type": "issue",
"dispatch_type": "workflow"
},
{
"command": "do-something-remotely",
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
with:
node-version: 12.x
- run: npm ci
- run: npm run build
- run: npm run format-check
- run: npm run lint
- run: npm run test
- run: npm run package
- uses: actions/upload-artifact@v2
with:
name: dist
Expand All @@ -37,11 +39,9 @@ jobs:
name: dist
path: dist
- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update distribution
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: Update distribution
body: |
- Updates the distribution for changes on `master`
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ping-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
with:
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
body: |
>pong ${{ github.event.client_payload.slash_command.args }}
>pong ${{ github.event.client_payload.slash_command.args.all }}
reaction-type: hooray
17 changes: 16 additions & 1 deletion .github/workflows/slash-command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
uses: ./
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
commands: hello-world-local, ping-local
commands: |
hello-world-local
ping-local
permission: none
issue-type: issue

Expand Down Expand Up @@ -67,6 +69,19 @@ jobs:
"repository": "peter-evans/slash-command-dispatch-processor",
"event_type_suffix": "-pr-command"
},
{
"command": "hello-workflow",
"permission": "none",
"issue_type": "issue",
"repository": "peter-evans/slash-command-dispatch-processor",
"static_args": [
"repository=${{ github.repository }}",
"comment-id=${{ github.event.comment.id }}",
"issue-number=${{ github.event.issue.number }}",
"actor=${{ github.actor }}"
],
"dispatch_type": "workflow"
},
{
"command": "ping",
"permission": "none",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-dep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
npx -p npm-check-updates ncu -u
npm install
- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
commit-message: Update dependencies
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
lib/
node_modules/
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"
}
Loading

0 comments on commit d09e9c6

Please sign in to comment.