Skip to content

Commit

Permalink
chore(gha): add linear.yml GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-bot committed Nov 14, 2024
1 parent 82f0ce1 commit 8f7724f
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/linear.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# DO NOT EDIT: BEGIN
# This snippet has been inserted automatically by mobsuccessbot, do not edit!
# If changes are needed, update the action linear in
# https://github.com/mobsuccess-devops/github-mobsuccess-policy
name: Linear

on:
merge_group:
types:
- checks_requested

pull_request:
types:
- assigned
- unassigned
- review_requested
- review_request_removed
- opened
- synchronize
- closed
- edited
- converted_to_draft
- ready_for_review

jobs:
Linear:
runs-on: ubuntu-latest
timeout-minutes: 3
permissions:
contents: read
pull-requests: write

steps:
- uses: mobsuccess-devops/github-actions-linear@master
id: check-pr-title-compliance
if: github.event.pull_request.draft == false
with:
action: check-pr-title-compliance
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
githubToken: ${{ secrets.GITHUB_TOKEN }}

- uses: mobsuccess-devops/github-actions-linear@master
with:
action: create-linear-issue-from-bot-pr
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
githubToken: ${{ secrets.GITHUB_TOKEN }}

- uses: mobsuccess-devops/github-actions-linear@master
with:
action: check-linear-state
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
# DO NOT EDIT: END

0 comments on commit 8f7724f

Please sign in to comment.