Skip to content

Commit

Permalink
ci: add auto_merge_enabled to PR activity types and concurrency setti…
Browse files Browse the repository at this point in the history
…ngs (langflow-ai#2471)

* ci: add auto_merge_enabled to pr activity types

* fix  (auto-update.yml): remove 'dev' branch from trigger to run workflow on 'main' branch pushes only

fix (js_autofix.yml): remove unnecessary push trigger for 'main' branch in workflow to run on specific file changes only

* ci: Update concurrency settings in CI workflows
  • Loading branch information
ogabrielluiz committed Jul 2, 2024
1 parent 32e12cf commit 26a71e1
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Auto-update
on:
push:
branches:
- dev
- main

jobs:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/js_autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ name: autofix.ci

on:
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled, auto_merge_disabled]
paths:
- "src/frontend/**"
push:
branches: [ "main" ]
types: [opened, synchronize, reopened, auto_merge_enabled]
paths:
- "src/frontend/**"

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "src/frontend/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
NODE_VERSION: "21"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Lint Python

on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
env:
POETRY_VERSION: "1.8.2"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Run Mypy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/py_autofix.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: autofix.ci
on:
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled, auto_merge_disabled]
types: [opened, synchronize, reopened, auto_merge_enabled]
paths:
- "poetry.lock"
- "pyproject.toml"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: Python tests

on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
branches: [main]
env:
POETRY_VERSION: "1.8.2"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Run Unit Tests
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/style-check-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: Ruff Style Check

on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
POETRY_VERSION: "1.8.2"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/typescript_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ on:
required: false
type: string
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
POETRY_VERSION: "1.8.3"
Expand Down

0 comments on commit 26a71e1

Please sign in to comment.