summaryrefslogtreecommitdiffstats
path: root/.github/workflows/command-rebase.yml
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2024-05-31 00:34:33 +0200
committerAndy Scherzinger <info@andy-scherzinger.de>2024-06-04 20:16:31 +0200
commitc54f87668e11d7e092991574e906405ba08e8f8a (patch)
tree76195553a9b767502dd3008e4812aa399251f5e1 /.github/workflows/command-rebase.yml
parent2ffd943a7fe199e96b56b0679f37143e3914a840 (diff)
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Diffstat (limited to '.github/workflows/command-rebase.yml')
-rw-r--r--.github/workflows/command-rebase.yml51
1 files changed, 0 insertions, 51 deletions
diff --git a/.github/workflows/command-rebase.yml b/.github/workflows/command-rebase.yml
deleted file mode 100644
index 53a9fb9b..00000000
--- a/.github/workflows/command-rebase.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-# This workflow is provided via the organization template repository
-#
-# https://github.com/nextcloud/.github
-# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
-
-name: Rebase command
-
-on:
- issue_comment:
- types: created
-
-permissions:
- contents: read
-
-jobs:
- rebase:
- runs-on: ubuntu-latest
- permissions:
- contents: none
-
- # On pull requests and if the comment starts with `/rebase`
- if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
-
- steps:
- - name: Add reaction on start
- uses: peter-evans/create-or-update-comment@ca08ebd5dc95aa0cd97021e9708fcd6b87138c9b # v3.0.1
- with:
- token: ${{ secrets.COMMAND_BOT_PAT }}
- repository: ${{ github.event.repository.full_name }}
- comment-id: ${{ github.event.comment.id }}
- reaction-type: "+1"
-
- - name: Checkout the latest code
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- with:
- fetch-depth: 0
- token: ${{ secrets.COMMAND_BOT_PAT }}
-
- - name: Automatic Rebase
- uses: cirrus-actions/rebase@b87d48154a87a85666003575337e27b8cd65f691 # 1.8
- env:
- GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
-
- - name: Add reaction on failure
- uses: peter-evans/create-or-update-comment@ca08ebd5dc95aa0cd97021e9708fcd6b87138c9b # v3.0.1
- if: failure()
- with:
- token: ${{ secrets.COMMAND_BOT_PAT }}
- repository: ${{ github.event.repository.full_name }}
- comment-id: ${{ github.event.comment.id }}
- reaction-type: "-1"