Skip to content

Commit

Permalink
Merge branch 'auto-rebase' into test2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jul 17, 2021
2 parents 08f7030 + fdd8ad1 commit 8265460
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,10 @@ name: Automatic Rebase
on:
issue_comment:
types: [created]

#permissions:
#contents: write
#pull-requests: write
#issues: read
# Enforce other not needed permissions are off
#actions: none
#checks: none
#deployments: none
#packages: none
#repository-projects: none
#security-events: none
#statuses: none

jobs:
rebase:
name: Rebase
if: github.event.comment.author_association == 'COLLABORATOR' && github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
Expand All @@ -28,6 +14,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Automatic Rebase
uses: cirrus-actions/rebase@1.5
uses: cirrus-actions/rebase@1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8265460

Please sign in to comment.