Skip to content

Commit b2a5b08

Browse files
committed
update to use team key
1 parent 333c3c2 commit b2a5b08

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/create-docs-issue.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ name: Create Documentation Linear Issue
22

33
on:
44
workflow_call:
5+
inputs:
6+
team-key:
7+
required: true
8+
description: The key of the team in Linear e.g. ENG, DEV etc.
59
secrets:
610
linear-api-key:
711
required: true
812
description: An API key to use to create an issue for documentation.
913
linear-label-id:
1014
required: true
1115
description: The ID of the label to be added to the issue.
12-
linear-docs-team-id:
13-
required: true
14-
description: The ID of the documentation team in Linear.
16+
1517

1618
jobs:
1719
create-issue:
@@ -24,15 +26,14 @@ jobs:
2426
env:
2527
LINEAR_API_KEY: ${{ secrets.linear-api-key }}
2628
LINEAR_LABEL_ID: ${{ secrets.linear-label-id }}
27-
LINEAR_DOCS_TEAM_ID: ${{ secrets.linear-docs-team-id }}
2829
PR_TITLE: ${{ github.event.pull_request.title }}
2930
PR_URL: ${{ github.event.pull_request.html_url }}
3031
PR_BODY: ${{ github.event.pull_request.body }}
3132
run: |
3233
PAYLOAD=$(jq -n \
33-
--arg t "DOC: $PR_TITLE" \
34+
--arg t "${{ inputs.team-key }}: $PR_TITLE" \
3435
--arg d "PR: $PR_URL\n\n$PR_BODY" \
35-
--arg id "$LINEAR_DOCS_TEAM_ID" \
36+
--arg id "${{ inputs.team-key }}" \
3637
--arg l "$LINEAR_LABEL_ID" \
3738
'{
3839
query: "mutation($t:String!,$d:String!,$id:String!,$l:[String!]){issueCreate(input:{title:$t,description:$d,teamId:$id,labelIds:$l}){success issue{identifier url}}}",

0 commit comments

Comments
 (0)