Skip to content

Commit 7b15501

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

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/linear.yml

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

0 commit comments

Comments
 (0)