8000 Enable `/rebase` to automatically rebase a PR (#15808) · PowerShell/PowerShell@10dee69 · GitHub
[go: up one dir, main page]

Skip to 10000 content

Commit 10dee69

Browse files
authored
Enable /rebase to automatically rebase a PR (#15808)
1 parent 7777afc commit 10dee69

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/rebase.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This cannot rebase workflow changes into a PR
2+
# It also only works if the GITHUB_TOKEN has permission to push to the branch
3+
# see: https://github.com/cirrus-actions/rebase/issues/12#issuecomment-632594995
4+
on:
5+
issue_comment:
6+
types: [created]
7+
name: Automatic Rebase
8+
jobs:
9+
rebase:
10+
name: Rebase
11+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout the latest code
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Automatic Rebase
19+
uses: cirrus-actions/rebase@1.4
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
0