Skip to content

Commit

Permalink
fix: some docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
darmalovan committed Aug 20, 2024
1 parent 2a2da1f commit e1ae847
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Reply to a GitHub discussion.
## Params

- **discussionNumber:** The discussion number. Can be used with the `github_discussion_created` trigger and the `${githubDiscussionNumber}` parameter.
- **body:** The branch name in the quest's start repository.
- **body:** The content of the reply.

## Result

Expand Down
5 changes: 3 additions & 2 deletions docs/building-your-quest/actions/github-repo-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ A generic action to make a request to the GitHub repository API.
## Params

- **method:** The HTTP method to use. Can be one of `get`, `post`, `patch`, `put`.
- **body:** The body of the request.
- **path:** The relative path of the repo API endpoint. For example, `/repos/{owner}/{repo}/contributors` will be `/contributors`.
- **body:** The body of the API request.

## Result

No additional info is added to the global payload outputs.

## Usage Example

Enabling discussions on the repo :
```yaml
- actionId: github_repo_api
params:
Expand Down
26 changes: 13 additions & 13 deletions docs/building-your-quest/triggers-and-payloads.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,31 +83,31 @@ trigger:

### GITHUB_ISSUE_CREATED

Triggered when the user creates an issue on their repository
Triggered when the user creates an issue on their repository.

### GITHUB_BRANCH_CREATED

Triggered when the user creates a remote branch on their repository
Triggered when the user creates a remote branch on their repository.

### GITHUB_DISCUSSION_CREATED

Triggered when the user creates a discussion on their repository
Triggered when the user creates a discussion on their repository.

Generated payload:

- `githubDiscussionNumber`: the discussion number of the created discussion

An example:
```yml
trigger:
type: github_discussion_created
flowNode:
do:
- actionId: github_reply_to_discussion
params:
discussionNumber: "${githubDiscussionNumber}"
body: "Message body"
```
```yml
trigger:
type: github_discussion_created
flowNode:
do:
- actionId: github_reply_to_discussion
params:
discussionNumber: "${githubDiscussionNumber}"
body: "Message body"
```

### PING

Expand Down

0 comments on commit e1ae847

Please sign in to comment.