Skip to content

Commit

Permalink
ci: add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 3, 2023
1 parent c6af35c commit 5bb1009
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 🤖 Auto approve by bot
on: pull_request

jobs:
automated-pull-request:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/auto/approve/[email protected]
if: env.TAIGA_FAMILY_BOT_IS_AUTHOR == 'true'
with:
token1: ${{ secrets.GITHUB_TOKEN }}
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
16 changes: 16 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 🤖 Auto assign
on:
pull_request:
types: [opened, reopened]

jobs:
assign-author:
name: PR author as an assignee
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: toshimaru/[email protected]
if: env.IS_OWNER_MODE == 'true'
with:
repo-token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
23 changes: 23 additions & 0 deletions .github/workflows/auto-cleanup-caches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 🤖 Auto cleanup caches
on:
push:
branches: [main, 'v[0-9]+.x']
pull_request:
types:
- closed

jobs:
cleanup:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/auto/[email protected]
if: github.event_name == 'push'
with:
branch-name: ${{ github.head_ref || github.ref_name }}
- uses: taiga-family/ci/actions/auto/[email protected]
if: github.event_name == 'pull_request'
with:
branch-name: refs/pull/${{ github.event.pull_request.number }}/merge
12 changes: 12 additions & 0 deletions .github/workflows/auto-dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 🤖 Auto dependency review
on:
pull_request:
permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/security/[email protected]
14 changes: 14 additions & 0 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 🤖 Auto label
on: pull_request_review

jobs:
label-when-approved:
name: Label when approved
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/auto/[email protected]
with:
approvals: 1
token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .github/workflows/auto-remove-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 🤖 Auto remove label on closed issue
on:
issues:
types: [closed]

jobs:
remove_label:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/auto/[email protected]

0 comments on commit 5bb1009

Please sign in to comment.