Skip to content

Commit e78cc47

Browse files
committed
fix params
1 parent 5db7f85 commit e78cc47

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plugins/filters/suggestIssues/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
* @module suggestIssues
33
* @description Fetches ticket recommendations based on given pull request details.
44
* @param {object} pr - The pull request object containing title, author, and created_at properties.
5+
* @param {object} pr - The branch object containing the branch name.
56
* @param {string} apiKey - The API key used to authenticate requests.
67
* @returns {Array} Returns an array of suggested issues related to the current Pull Request.
7-
* @example {{ pr | suggestIssues(env.LINEARB_TOKEN) }}
8+
* @example {{ pr | suggestIssues(branch, env.LINEARB_TOKEN) }}
89
* @license MIT
910
**/
1011

plugins/filters/suggestIssues/reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ A gitStream plugin to suggest issues to link to the PR
1111
| Param | Type | Description |
1212
| ------ | -------- | ------------------------------------------------ |
1313
| pr | `Object` | The pull request object from gitStream's context |
14+
| branch | Object | The branch object from gitStream's context |
1415
| apiKey | `string` | The API key used to authenticate requests. |
1516

1617

0 commit comments

Comments
 (0)