kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 41 lines 1.5 kB view raw
1name: Dependabot Auto-Merge 2 3on: pull_request 4 5permissions: 6 contents: write 7 pull-requests: write 8 9jobs: 10 dependabot: 11 name: Dependabot Auto-Merge 12 runs-on: ubuntu-latest 13 if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]' 14 15 steps: 16 - name: Dependabot Metadata 17 id: metadata 18 uses: dependabot/fetch-metadata@v2 19 with: 20 github-token: "${{ secrets.GITHUB_TOKEN }}" 21 22 - name: Auto-Merge Dependabot PR 23 if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' 24 run: | 25 # Wait a bit for any checks to start 26 sleep 30 27 28 # Check if all required checks have passed 29 if gh pr view "$PR_URL" --json statusCheckRollup --jq '.statusCheckRollup | all(.conclusion == "SUCCESS")'; then 30 echo "All checks passed, merging..." 31 gh pr merge --squash "$PR_URL" 32 elif gh pr view "$PR_URL" --json statusCheckRollup --jq '.statusCheckRollup | length == 0'; then 33 echo "No status checks required, merging..." 34 gh pr merge --squash "$PR_URL" 35 else 36 echo "Status checks not passed, skipping merge" 37 gh pr view "$PR_URL" --json statusCheckRollup 38 fi 39 env: 40 PR_URL: ${{github.event.pull_request.html_url}} 41 GH_TOKEN: ${{secrets.AUTO_MERGE_PAT}}