您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021
  1. name: Automatic Rebase
  2. # https://github.com/marketplace/actions/automatic-rebase
  3. on:
  4. issue_comment:
  5. types: [ created ]
  6. jobs:
  7. rebase:
  8. name: Rebase
  9. if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout the latest code
  13. uses: actions/checkout@v2
  14. with:
  15. fetch-depth: 0
  16. - name: Automatic Rebase
  17. uses: cirrus-actions/rebase@1.3.1
  18. env:
  19. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}