File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
plugins/filters/suggestIssues Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 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
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
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
You can’t perform that action at this time.
0 commit comments