Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable auto-author-assign for issue / Format yaml files #81

Merged
merged 2 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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