@@ -5,23 +5,25 @@ This is a [Github Action](https://github.com/features/actions) that finds a [Lin
5
5
This is helpful when you're:
6
6
7
7
- 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
8
10
9
11
## Inputs
10
12
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 ` ) | 🚫 |
20
22
21
23
## Outputs
22
24
23
25
| Output | Description |
24
- | --------------- | ---------------------------------------------------------------- |
26
+ | ----------------- | ------------------------------------------------------------------ |
25
27
| ` linear-issue ` | The Linear issue in JSON format |
26
28
| ` linear-issues ` | The Linear issues as JSON array (when ` output-multiple ` is used) |
27
29
@@ -45,15 +47,19 @@ jobs:
45
47
steps :
46
48
- name : Find the Linear Issue
47
49
id : findIssue
48
- uses : ctriolo /action-find-linear-issue@v1
50
+ uses : nrpx /action-find-linear-issue@v1
49
51
with :
50
52
linear-api-key : ${{secrets.LINEAR_API_KEY}}
51
53
52
54
- name : Create comment in PR with Linear Issue link
53
55
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 }}
54
60
with :
55
- token : ${{secrets.GITHUB_TOKEN}}
61
+ token : ${{ secrets.GITHUB_TOKEN }}
56
62
issue-number : ${{ github.event.pull_request.number }}
57
63
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 }})
59
65
` ` `
0 commit comments