summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
commit19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch)
tree42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /.github/workflows
parentInitial commit. (diff)
downloadceph-upstream/16.2.11+ds.tar.xz
ceph-upstream/16.2.11+ds.zip
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/needs-rebase.yml18
-rw-r--r--.github/workflows/pr-triage.yml24
2 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/needs-rebase.yml b/.github/workflows/needs-rebase.yml
new file mode 100644
index 000000000..d9e2c706f
--- /dev/null
+++ b/.github/workflows/needs-rebase.yml
@@ -0,0 +1,18 @@
+---
+name: "Pull Request Needs Rebase?"
+on:
+ pull_request_target:
+ types: [opened, synchronize, reopened]
+jobs:
+ needs-rebase:
+ runs-on: ubuntu-latest
+ steps:
+ # eps1lon/actions-label-merge-conflict@v2.0.1
+ # (NOTE: pinning the action to a given commit is a security best-practice:
+ # https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/security-hardening-for-github-actions)
+ - name: Check if PR needs rebase
+ uses: eps1lon/actions-label-merge-conflict@b8bf8341285ec9a4567d4318ba474fee998a6919
+ with:
+ repoToken: "${{ secrets.GITHUB_TOKEN }}"
+ dirtyLabel: "needs-rebase"
+ commentOnDirty: "This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved"
diff --git a/.github/workflows/pr-triage.yml b/.github/workflows/pr-triage.yml
new file mode 100644
index 000000000..481f75331
--- /dev/null
+++ b/.github/workflows/pr-triage.yml
@@ -0,0 +1,24 @@
+---
+name: "Pull Request Triage"
+on: pull_request_target
+env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+jobs:
+ pr-triage:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Assign labels based on modified files
+ uses: actions/labeler@9794b1493b6f1fa7b006c5f8635a19c76c98be95
+ with:
+ sync-labels: ''
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
+ - name: Assign to Dashboard project
+ uses: srggrs/assign-one-project-github-action@65a8ddab497df42ef268001e67bbf976f8fd39e1
+ if: contains(github.event.pull_request.labels.*.name, 'dashboard')
+ with:
+ project: https://github.com/ceph/ceph/projects/6
+ - name: Assign milestone based on target brach name
+ uses: iyu/actions-milestone@dbf7e5348844c9ddc6b803a5721b85fa70fe3bb9
+ with:
+ configuration-path: .github/milestone.yml
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"