Skip to content

Commit 0af9d2b

Browse files
committed
first commit
0 parents  commit 0af9d2b

19 files changed

+3643
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# Misc
3+
.DS_Store
4+
5+
# Editor
6+
.vscode
7+
.idea
8+
9+
# Dependencies
10+
node_modules
11+
12+
# Logs
13+
logs
14+
*.log
15+
.pnpm-debug.log*

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.18.1

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-exact=true
2+
strict-peer-dependencies=true

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# action-assign-reviewers
2+
3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- First Release

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 PrAha
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# action-assign-reviewers
2+
3+
[![license](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/praha-inc/action-assign-reviewers/blob/main/LICENSE)
4+
[![Github](https://img.shields.io/github/followers/praha-inc?label=Follow&logo=github&style=social)](https://github.com/orgs/praha-inc/followers)
5+
6+
This action assigns reviewers to the pull request only created by the user.
7+
8+
## 👏 Getting Started
9+
10+
Create a workflow file under ```.github/workflows``` directory.
11+
12+
```yaml
13+
name: Assign Reviewer
14+
on:
15+
pull_request_target:
16+
types: [opened]
17+
18+
jobs:
19+
assign-reviewers:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
pull-requests: write
23+
steps:
24+
- uses: praha-inc/action-assign-reviewers@v1
25+
with:
26+
exclude:
27+
- 'dependabot[bot]'
28+
- 'renovate[bot]'
29+
reviewers:
30+
- 'octocat'
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
```
33+
34+
## 🔧 Configurations
35+
36+
### `exclude`
37+
38+
If the author of the pull request is included in the list, the action will not assign reviewers.
39+
40+
### `reviewers`
41+
42+
The action assigns reviewers to the pull request.
43+
44+
## 🤝 Contributing
45+
46+
Contributions, issues and feature requests are welcome.
47+
48+
Feel free to check [issues page](https://github.com/praha-inc/action-assign-reviewers/issues) if you want to contribute.
49+
50+
## 📝 License
51+
52+
Copyright © 2020 [PrAha](https://www.praha-inc.com/).
53+
54+
This project is [```MIT```](https://github.com/praha-inc/action-assign-reviewers/blob/main/LICENSE) licensed.

action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Assign Reviewers
2+
description: Assign reviewers to PRs opened by bot users
3+
runs:
4+
using: 'node20'
5+
main: 'dist/index.js'
6+
inputs:
7+
GITHUB_TOKEN:
8+
description: 'GitHub Token'
9+
required: true
10+
exclude:
11+
description: 'Exclude users'
12+
required: false
13+
reviewers:
14+
description: 'Reviewers'
15+
required: true

dist/index.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)