From 2d6bbcae8e859485de3f29ba2f5bf658aae1473c Mon Sep 17 00:00:00 2001 From: splincode Date: Thu, 31 Aug 2023 16:40:25 +0300 Subject: [PATCH] chore: update --- .github/workflows/auto-add-to-project.yml | 12 ++++++++++ .github/workflows/auto-approve.yml | 16 ++++++++++++++ .github/workflows/auto-author-assign.yml | 18 +++++++++++++++ .github/workflows/auto-cleanup-caches.yml | 23 ++++++++++++++++++++ .github/workflows/auto-dependency-review.yml | 12 ++++++++++ .github/workflows/auto-remove-label.yml | 11 ++++++++++ 6 files changed, 92 insertions(+) create mode 100644 .github/workflows/auto-add-to-project.yml create mode 100644 .github/workflows/auto-approve.yml create mode 100644 .github/workflows/auto-author-assign.yml create mode 100644 .github/workflows/auto-cleanup-caches.yml create mode 100644 .github/workflows/auto-dependency-review.yml create mode 100644 .github/workflows/auto-remove-label.yml diff --git a/.github/workflows/auto-add-to-project.yml b/.github/workflows/auto-add-to-project.yml new file mode 100644 index 0000000..a90f551 --- /dev/null +++ b/.github/workflows/auto-add-to-project.yml @@ -0,0 +1,12 @@ +name: 🤖 Auto move new issues into Triage +on: + issues: + types: [opened] + +jobs: + automate-project-columns: + runs-on: ubuntu-latest + steps: + - uses: taiga-family/ci/actions/setup-project@1.12.0 + with: + token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000..d2670dc --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -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/checkout@v3.6.0 + - uses: taiga-family/ci/actions/variables@1.12.0 + - uses: taiga-family/ci/actions/two-approve@1.12.0 + if: env.TAIGA_FAMILY_BOT_IS_AUTHOR == 'true' + with: + token1: ${{ secrets.GITHUB_TOKEN }} + token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }} diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml new file mode 100644 index 0000000..a3d49b3 --- /dev/null +++ b/.github/workflows/auto-author-assign.yml @@ -0,0 +1,18 @@ +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/checkout@v3.6.0 + - uses: taiga-family/ci/actions/variables@1.12.0 + + - name: Auto assign + if: env.IS_OWNER_MODE == 'true' + uses: toshimaru/auto-author-assign@v1.6.2 + with: + repo-token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} diff --git a/.github/workflows/auto-cleanup-caches.yml b/.github/workflows/auto-cleanup-caches.yml new file mode 100644 index 0000000..451444a --- /dev/null +++ b/.github/workflows/auto-cleanup-caches.yml @@ -0,0 +1,23 @@ +name: 🤖 Auto cleanup caches +on: + push: + branches: [main] + pull_request: + types: + - closed + +jobs: + cleanup: + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v3.6.0 + - uses: taiga-family/ci/actions/cleanup-cache@1.12.0 + if: github.event_name == 'push' + with: + branch-name: ${{ github.head_ref || github.ref_name }} + - uses: taiga-family/ci/actions/cleanup-cache@1.12.0 + if: github.event_name == 'pull_request' + with: + branch-name: refs/pull/${{ github.event.pull_request.number }}/merge diff --git a/.github/workflows/auto-dependency-review.yml b/.github/workflows/auto-dependency-review.yml new file mode 100644 index 0000000..27dc733 --- /dev/null +++ b/.github/workflows/auto-dependency-review.yml @@ -0,0 +1,12 @@ +name: 🤖 Auto dependency review +on: + pull_request: +permissions: + contents: read + +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.6.0 + - uses: taiga-family/ci/actions/dependency-review@1.12.0 diff --git a/.github/workflows/auto-remove-label.yml b/.github/workflows/auto-remove-label.yml new file mode 100644 index 0000000..abe5361 --- /dev/null +++ b/.github/workflows/auto-remove-label.yml @@ -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/checkout@v3.6.0 + - uses: taiga-family/ci/actions/auto-remove-label@1.12.0