Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
📝 Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
masutaka committed Feb 16, 2019
1 parent ec02ac7 commit 19b9672
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,55 @@ action "Add a pull_request to project" {
}
```

### User owned project

1. Set the URL of User owned project to `PROJECT_URL`
1. Set column name you want issue/pull_request at the beginning to `INITIAL_COLUMN_NAME`
1. Set secrets `MY_GITHUB_TOKEN`
1. Create personal access token with `repo` scope on https://github.com/settings/tokens
1. Create secret `MY_GITHUB_TOKEN` on https://github.com/USER/REPO_NAME/settings/secrets. The value is same to personal access token you created the above
1. Set `MY_GITHUB_TOKEN` to `secrets` as follows:

#### For issues

```hcl
workflow "issues" {
on = "issues"
resolves = ["Add an issue to project"]
}
action "Add an issue to project" {
uses = "docker://masutaka/github-actions-all-in-one-project"
secrets = ["MY_GITHUB_TOKEN"]
args = ["issue"]
env = {
PROJECT_URL = "https://github.com/users/masutaka/projects/2"
INITIAL_COLUMN_NAME = "To do"
}
}
```

#### For pull requests

```hcl
workflow "pull_requests" {
on = "pull_request"
resolves = ["Add a pull_request to project"]
}
action "Add a pull_request to project" {
uses = "docker://masutaka/github-actions-all-in-one-project"
secrets = ["MY_GITHUB_TOKEN"]
args = ["pull_request"]
env = {
PROJECT_URL = "https://github.com/users/masutaka/projects/2"
INITIAL_COLUMN_NAME = "In progress"
}
}
```

### Organization-wide project

1. Set the URL of Organization-wide project to `PROJECT_URL`
Expand Down

0 comments on commit 19b9672

Please sign in to comment.