Skip to content

Commit e138278

Browse files
committed
docs: update doc
1 parent 3d4b355 commit e138278

File tree

3 files changed

+50
-46
lines changed

3 files changed

+50
-46
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Check pull request"
2+
3+
on:
4+
pull_request:
5+
types:
6+
- ready_for_review
7+
- converted_to_draft
8+
- reopened
9+
- opened
10+
- unlocked
11+
- synchronize
12+
jobs:
13+
test:
14+
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.event.pull_request.merged == false
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: dart-action/dio-pull-request-checker@v1
18+
with:
19+
github-token: ${{ secrets.GITHUB_TOKEN }}
20+
permissions:
21+
contents: write
22+
issues: write
23+
pull-requests: write

.github/workflows/test_code.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
1-
# Write action by dart
1+
# action for check pr
22

3-
## Getting Started
3+
## Setup action
44

5-
1. Click `Use the template` button to create your own repository.
6-
2. Write dart code in `bin/main.dart`.
5+
```yaml
6+
name: "Check pull request"
7+
8+
on:
9+
pull_request:
10+
types:
11+
- ready_for_review
12+
- converted_to_draft
13+
- reopened
14+
- opened
15+
- unlocked
16+
- synchronize
17+
jobs:
18+
test:
19+
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.event.pull_request.merged == false
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: dart-action/dio-pull-request-checker@v1
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
permissions:
26+
contents: write
27+
issues: write
28+
pull-requests: write
29+
```

0 commit comments

Comments
 (0)