Skip to content

Commit

Permalink
Create pull-request-types.yml (#1251)
Browse files Browse the repository at this point in the history
* Create pull-request-types.yml

* Update pull-request-types.yml

* Update context.yml

* Delete .github/workflows/pull-request-types.yml

* Update README.md
  • Loading branch information
nakamasato authored Apr 22, 2024
1 parent e0d1439 commit 3244956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/context.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: context
on:
pull_request:
types:
- edited
- opened
- synchronize # default
- ready_for_review
Expand Down Expand Up @@ -64,5 +65,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `event: ${{ github.event_name }}\n- github.event.pull_request.head.sha: ${{ github.event.pull_request.head.sha }}\n - github.sha: ${{ github.sha }}`
body: `github.event_name: ${{ github.event_name }} (github.event.action: ${{ github.event.action }})\n- github.event.pull_request.head.sha: ${{ github.event.pull_request.head.sha }}\n - github.sha: ${{ github.sha }}`
})
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
pull_request:
types: [assigned, opened, synchronize, reopened, ready_for_review]
```
- action: `${{ github.event.action }}`
- Get PR number: `PR_NUMBER=${{ github.event.number }}`
- Get sha: `${{ github.sha }}`
- Get repository: `${{ github.repository }}`
Expand Down

0 comments on commit 3244956

Please sign in to comment.