Skip to content

Commit caae861

Browse files
committed
chore(gha): add linear.yml GitHub workflow
1 parent f266f89 commit caae861

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/linear.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# DO NOT EDIT: BEGIN
2+
# This snippet has been inserted automatically by mobsuccessbot, do not edit!
3+
# If changes are needed, update the action linear in
4+
# https://github.com/mobsuccess-devops/github-mobsuccess-policy
5+
name: Linear
6+
7+
on:
8+
merge_group:
9+
types:
10+
- checks_requested
11+
12+
pull_request:
13+
types:
14+
- opened
15+
- synchronize
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
Linear:
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 3
25+
permissions:
26+
contents: read
27+
pull-requests: write
28+
29+
steps:
30+
- uses: mobsuccess-devops/github-actions-linear@master
31+
id: check-pr-title-compliance
32+
if: github.event.pull_request.draft == false
33+
with:
34+
action: check-pr-title-compliance
35+
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
36+
githubToken: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- uses: mobsuccess-devops/github-actions-linear@master
39+
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'closed')
40+
with:
41+
action: create-linear-issue-from-bot-pr
42+
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
43+
githubToken: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- uses: mobsuccess-devops/github-actions-linear@master
46+
with:
47+
action: check-linear-state
48+
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
49+
githubToken: ${{ secrets.GITHUB_TOKEN }}
50+
# DO NOT EDIT: END

0 commit comments

Comments
 (0)