File tree 2 files changed +3
-1
lines changed
plugins/filters/suggestIssues
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2
2
* @module suggestIssues
3
3
* @description Fetches ticket recommendations based on given pull request details.
4
4
* @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.
5
6
* @param {string } apiKey - The API key used to authenticate requests.
6
7
* @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) }}
8
9
* @license MIT
9
10
**/
10
11
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ A gitStream plugin to suggest issues to link to the PR
11
11
| Param | Type | Description |
12
12
| ------ | -------- | ------------------------------------------------ |
13
13
| pr | ` Object ` | The pull request object from gitStream's context |
14
+ | branch | Object | The branch object from gitStream's context |
14
15
| apiKey | ` string ` | The API key used to authenticate requests. |
15
16
16
17
You can’t perform that action at this time.
0 commit comments