@@ -5,23 +5,25 @@ This is a [Github Action](https://github.com/features/actions) that finds a [Lin
55This is helpful when you're:
66
77- Ensuring each Pull Request has a Linear Issue.
8+ - Making a forced PR title/description updates depends on data from Linear
9+ - Adjusting release notes on GitHub or somewhere else via PRs (actions) and Linear Issues
810
911## Inputs
1012
11- | Input | Description | Required |
12- | ---------------- | ---------------------------------------------------------------------------------- | -------- |
13- | ` linear-api-key ` | Linear API key generated from https://linear.app/settings/api . (e.g. ` lin_api_*) ` | ✅ |
14- | ` output-multiple ` | Find multiple issues and output a JSON array of results (default ` false ` ) | ❌ |
15- | ` include-title ` | Taking the PR title into account to find issues (default ` false ` ) | ❌ |
16- | ` include-description ` | Taking the PR description into account to find issues (default ` false ` ) | ❌ |
17- | ` include-branch-name ` | Taking the PR branch name into account to find issues (default ` true ` ) | ❌ |
18- | ` with-team ` | Include ` team ` node into each resulted ` issue ` (default ` true ` ) | ❌ |
19- | ` with-labels ` | Include ` labels ` nodes into each resulted ` issue ` (default ` true ` ) | ❌ |
13+ | Input | Description | Required |
14+ | ----------------------- | ------------------------------------------------------------------------------------ | ---------- |
15+ | ` linear-api-key ` | Linear API key generated from https://linear.app/settings/api . (e.g. ` lin_api_*) ` | ✅ |
16+ | ` output-multiple ` | Find multiple issues and output a JSON array of results (default ` false ` ) | 🚫 |
17+ | ` include-title ` | Taking the PR title into account to find issues (default ` false ` ) | 🚫 |
18+ | ` include-description ` | Taking the PR description into account to find issues (default ` false ` ) | 🚫 |
19+ | ` include-branch-name ` | Taking the PR branch name into account to find issues (default ` true ` ) | 🚫 |
20+ | ` with-team ` | Include ` team ` node into each resulted ` issue ` (default ` true ` ) | 🚫 |
21+ | ` with-labels ` | Include ` labels ` nodes into each resulted ` issue ` (default ` true ` ) | 🚫 |
2022
2123## Outputs
2224
2325| Output | Description |
24- | --------------- | ---------------------------------------------------------------- |
26+ | ----------------- | ------------------------------------------------------------------ |
2527| ` linear-issue ` | The Linear issue in JSON format |
2628| ` linear-issues ` | The Linear issues as JSON array (when ` output-multiple ` is used) |
2729
@@ -45,15 +47,19 @@ jobs:
4547 steps :
4648 - name : Find the Linear Issue
4749 id : findIssue
48- uses : ctriolo /action-find-linear-issue@v1
50+ uses : nrpx /action-find-linear-issue@v1
4951 with :
5052 linear-api-key : ${{secrets.LINEAR_API_KEY}}
5153
5254 - name : Create comment in PR with Linear Issue link
5355 uses : peter-evans/create-or-update-comment@v2
56+ env :
57+ issue_identifier : ${{ fromJson(steps.findIssue.outputs.linear-issue).identifier }}
58+ issue_title : ${{ fromJson(steps.findIssue.outputs.linear-issue).title }}
59+ issue_url : ${{ fromJson(steps.findIssue.outputs.linear-issue).url }}
5460 with :
55- token : ${{secrets.GITHUB_TOKEN}}
61+ token : ${{ secrets.GITHUB_TOKEN }}
5662 issue-number : ${{ github.event.pull_request.number }}
5763 body : |
58- [${{ steps.findIssue.outputs.linear-issue.identifier }}: ${{ steps.findIssue.outputs.linear-issue.title }}](${{ steps.findIssue.outputs.linear-issue.url }})
64+ [${{ env.issue_identifier }}: ${{ env.issue_title }}](${{ env.issue_url }})
5965` ` `
0 commit comments