From b40e2a4211d86a18d2a66c8b49e4cd68e754ddd5 Mon Sep 17 00:00:00 2001 From: splincode Date: Thu, 31 Aug 2023 14:59:20 +0300 Subject: [PATCH] chore: revert --- .github/workflows/auto-add-to-project.yml | 12 ++++++++++ .github/workflows/auto-approve.yml | 17 +++++++++++++++ .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, 93 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 00000000..63381052 --- /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.10.1 + 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 00000000..c0313524 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,17 @@ +name: 🤖 Auto approve by bot +on: pull_request + +jobs: + automated-pull-request: + runs-on: ubuntu-latest + permissions: + pull-requests: write + if: + github.actor == 'taiga-family-bot' && (contains(github.head_ref, 'release/') || contains(github.head_ref, + 'renovate/')) + steps: + - uses: actions/checkout@v3 + - uses: taiga-family/ci/actions/two-approve@1.10.1 + 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 00000000..38b725e1 --- /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.10.1 + + - 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 00000000..7ac96cb1 --- /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.10.1 + if: github.event_name == 'push' + with: + branch-name: ${{ github.head_ref || github.ref_name }} + - uses: taiga-family/ci/actions/cleanup-cache@1.10.1 + 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 00000000..c28335c8 --- /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.10.1 diff --git a/.github/workflows/auto-remove-label.yml b/.github/workflows/auto-remove-label.yml new file mode 100644 index 00000000..356ded27 --- /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.10.1