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