Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit b2bd619

Browse files
committed
chore(gha): add linear.yml GitHub workflow
1 parent 3e374b5 commit b2bd619

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/linear.yml

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

0 commit comments

Comments
 (0)