Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stNamco committed Aug 14, 2022
1 parent 3c27afb commit 512bd9d
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,49 @@
# add-card-to-project
add issue or pr to github project
just add issue or pr to github project


#### Example Usage

```yaml
name: Add card to project

on:
issues:
types:
- opened

jobs:
add-card-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- name: Example create PR action
id: createPullrequest
uses: peter-evans/create-pull-request@v4
with:
base: main
branch-suffix: timestamp
title: Example
assignees: ${{ github.actor }}
body: example text
- uses: stNamco/add-card-to-project@v0.0.1
with:
githubToken: ${{secrets.EXAMPLE_PAT}}
ownerType: user
ownerName: stNamco
projectNumber: 6
repositoryName: example-issues
issueId: ${{ steps.createPullrequest.outputs.pull-request-number }}
```
### Action inputs
| Name | Description |
| --- | --- |
| githubToken | `repo` and `project` scoped [Personal Access Token (PAT)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token). |
| ownerType | `user` or `organization`. |
| ownerName | user name or organization name. |
| repositoryName | github repository name. |
| projectNumber | github project numeber. |
| issueId | the issue or pr id. |

0 comments on commit 512bd9d

Please sign in to comment.