From c78fad92a5a376a119d2d6c2b456ea1d580b27c2 Mon Sep 17 00:00:00 2001 From: Mobsuccess Bot Date: Tue, 27 Jan 2026 12:57:13 +0000 Subject: [PATCH] chore(gha): add linear.yml GitHub workflow --- .github/workflows/linear.yml | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/linear.yml diff --git a/.github/workflows/linear.yml b/.github/workflows/linear.yml new file mode 100644 index 0000000..340ea2c --- /dev/null +++ b/.github/workflows/linear.yml @@ -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: + - opened + - reopened + - closed + - edited + - synchronize + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + Linear: + runs-on: ubuntu-slim + 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 + if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'closed') + 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