Skip to content

Commit

Permalink
Merge pull request #81 from toshimaru/enable-ci-for-issue
Browse files Browse the repository at this point in the history
Enable auto-author-assign for issue / Format yaml files
  • Loading branch information
toshimaru committed Jul 29, 2022
2 parents 8674fdd + 9a60dec commit faeb58e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 28 deletions.
24 changes: 12 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
reviewers:
- toshimaru
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
reviewers:
- toshimaru
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
reviewers:
- toshimaru
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
reviewers:
- toshimaru
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Build'
name: Build

on:
push:
Expand All @@ -10,11 +10,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: 16
cache: 'npm'
- run: npm ci
- run: npm run build
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: 'Auto Author Assign'
on: [pull_request_target]
name: Auto Author Assign

on:
pull_request_target:
issues:
types: [ opened, reopened ]

permissions:
issues: write
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Test toshimaru/auto-author-assign action
uses: ./ # Uses an action in the root directory
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This action automatically assigns PR author as an assignee.

```yml
# .github/workflows/auto-author-assign.yml
name: 'Auto Author Assign'
name: Auto Author Assign

on:
issues:
Expand All @@ -32,11 +32,11 @@ jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v1.6.0
- uses: toshimaru/auto-author-assign@v1.6.0

```

## Use your token
## Use your own token

You can specify your own token.

Expand All @@ -45,9 +45,9 @@ jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign
with:
repo-token: '${{ secrets.YOUR_TOKEN }}'
- uses: toshimaru/auto-author-assign
with:
repo-token: ${{ secrets.YOUR_TOKEN }}

```

Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'Auto Author Assign'
name: Auto Author Assign
description: 'Assign author to pull requests when the pull requests are opened.'
author: 'toshimaru'
inputs:
repo-token:
description: 'A token for the repository'
default: '${{ github.token }}'
default: ${{ github.token }}
runs:
using: 'node16'
main: 'dist/index.js'
Expand Down

0 comments on commit faeb58e

Please sign in to comment.