├── .gitignore ├── a.json ├── README.md └── .github └── workflows ├── blank.yml └── autosquash.yml /.gitignore: -------------------------------------------------------------------------------- 1 | a.json 2 | -------------------------------------------------------------------------------- /a.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": "b" 3 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # bbb 2 | 3 | bbb 4 | bbb 5 | -------------------------------------------------------------------------------- /.github/workflows/blank.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - uses: actions/checkout@v1 12 | - name: Run a one-line script 13 | run: echo Hello, world! 14 | - name: Run a multi-line script 15 | run: | 16 | echo Add other actions to build, 17 | echo test, and deploy your project. 18 | -------------------------------------------------------------------------------- /.github/workflows/autosquash.yml: -------------------------------------------------------------------------------- 1 | name: Autosquash 2 | on: 3 | check_run: 4 | types: 5 | # Check runs completing successfully can unblock the 6 | # corresponding pull requests and make them mergeable. 7 | - completed 8 | pull_request: 9 | types: 10 | # A closed pull request makes the checks on the other 11 | # pull request on the same base outdated. 12 | - closed 13 | # Adding the autosquash label to a pull request can 14 | # trigger an update or a merge. 15 | - labeled 16 | pull_request_review: 17 | types: 18 | # Review approvals can unblock the pull request and 19 | # make it mergeable. 20 | - submitted 21 | # Success statuses can unblock the corresponding 22 | # pull requests and make them mergeable. 23 | status: {} 24 | 25 | jobs: 26 | autosquash: 27 | runs-on: ubuntu-18.04 28 | name: Autosquash 29 | steps: 30 | - name: Autosquash 31 | uses: tibdex/autosquash@master 32 | env: 33 | # We can't use the built-in secrets.GITHUB_TOKEN yet because of this limitation: 34 | # https://github.community/t5/GitHub-Actions/Triggering-a-new-workflow-from-another-workflow/td-p/31676 35 | # In the meantime, use a personal access token with repo access. 36 | # See https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line 37 | GITHUB_TOKEN: ${{ secrets.AUTOSQUASH_TOKEN }} --------------------------------------------------------------------------------