Skip to content

Commit 64b8df8

Browse files
committed
last cleanups before release
1 parent 89f625d commit 64b8df8

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/workflows/pull-request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ jobs:
3434
issue-number: ${{ github.event.pull_request.number }}
3535
body: |
3636
```yaml
37-
${{ fromJson(steps.findIssue.outputs.linear-issue) }}
37+
${{ toJson(steps.findIssue.outputs.linear-issue) }}
3838
```

.github/workflows/pull_request.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"pull_request": {
3+
"number": 1,
34
"head": {
45
"ref": "fos-2174-linear-api-with-github-actions"
56
},

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ This is helpful when you're:
1111
| Input | Description | Required |
1212
| ---------------- | ---------------------------------------------------------------------------------- | -------- |
1313
| `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`) ||
1420

1521
## Outputs
1622

17-
| Output | Description |
18-
| -------------------------- | -------------------------------------------------------------- |
19-
| `linear-issue-id` | The Linear issue's unique identifier. (UUID) |
20-
| `linear-issue-identifier` | The Linear issue's human readable identifier. (e.g. `ENG-123`) |
21-
| `linear-issue-number` | The Linear issue's number. (e.g. the `123` of `ENG-123`) |
22-
| `linear-issue-title` | The Linear issue's title. |
23-
| `linear-issue-description` | The Linear issue's description. |
24-
| `linear-issue-url` | The Linear issue's URL. (e.g. `https://...`) |
25-
| `linear-team-id` | The Linear teams unique identifier. (UUID) |
26-
| `linear-team-key` | The Linear teams key/prefix (e.g. `ENG`) |
23+
| Output | Description |
24+
| --------------- | ---------------------------------------------------------------- |
25+
| `linear-issue` | The Linear issue in JSON format |
26+
| `linear-issues` | The Linear issues as JSON array (when `output-multiple` is used) |
2727

2828
## Example usage
2929

30-
### Create Linear Issue on Pull Request
30+
### Create a comment with Linear Issue on Pull Request
3131

3232
```yaml
3333
name: Find Linear Issue in Pull Request
@@ -40,7 +40,7 @@ on:
4040
types: [opened, reopened]
4141

4242
jobs:
43-
create-linear-issue-on-pull-request:
43+
comment-with-linear-issue-on-pull-request:
4444
runs-on: ubuntu-latest
4545
steps:
4646
- name: Find the Linear Issue
@@ -55,5 +55,5 @@ jobs:
5555
token: ${{secrets.GITHUB_TOKEN}}
5656
issue-number: ${{ github.event.pull_request.number }}
5757
body: |
58-
[${{ steps.findIssue.outputs.linear-issue-identifier }}: ${{ steps.findIssue.outputs.linear-issue-title }}](${{ steps.findIssue.outputs.linear-issue-url }})
58+
[${{ steps.findIssue.outputs.linear-issue.identifier }}: ${{ steps.findIssue.outputs.linear-issue.title }}](${{ steps.findIssue.outputs.linear-issue.url }})
5959
```

0 commit comments

Comments
 (0)