Skip to content

Commit a101d65

Browse files
committed
chore(gha): add linear.yml GitHub workflow
1 parent 77ecccf commit a101d65

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/linear.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
- closed
16+
- edited
17+
- synchronize
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
Linear:
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 3
27+
permissions:
28+
contents: read
29+
pull-requests: write
30+
31+
steps:
32+
- uses: mobsuccess-devops/github-actions-linear@master
33+
id: check-pr-title-compliance
34+
if: github.event.pull_request.draft == false
35+
with:
36+
action: check-pr-title-compliance
37+
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
38+
githubToken: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- uses: mobsuccess-devops/github-actions-linear@master
41+
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'closed')
42+
with:
43+
action: create-linear-issue-from-bot-pr
44+
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
45+
githubToken: ${{ secrets.GITHUB_TOKEN }}
46+
47+
- uses: mobsuccess-devops/github-actions-linear@master
48+
with:
49+
action: check-linear-state
50+
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
51+
githubToken: ${{ secrets.GITHUB_TOKEN }}
52+
# DO NOT EDIT: END

0 commit comments

Comments
 (0)