also looking at this
feat(touch): post the checkboxes the finishing-touch flow waits on
#1424
7 files
+149
-5
| @@ -1823,7 +1823,10 @@ ${generateComposerSetupSteps()} | ||
| 1823 | 1823 | runs-on: ubuntu-latest |
| 1824 | 1824 | timeout-minutes: 30 |
| 1825 | 1825 | needs: [determine-jobs, setup] |
| 1826 | if: \${{ github.event_name == 'pull_request' && github.event.action == 'edited' }} | |
| 1826 | # Two moments, not one: the offer has to be posted before there is a box to | |
| 1827 | # tick, and \`edited\` is when a tick arrives. Offering only on \`edited\` | |
| 1828 | # would mean the checkboxes never appeared at all. | |
| 1829 | if: \${{ github.event_name == 'pull_request' && (github.event.action == 'edited' || github.event.action == 'opened' || github.event.action == 'ready_for_review') }} | |
| 1827 | 1830 | |
| 1828 | 1831 | steps: |
| 1829 | 1832 | - name: Checkout repository |
| @@ -1838,7 +1841,15 @@ ${generateComposerSetupSteps()} | ||
| 1838 | 1841 | - name: Install dependencies |
| 1839 | 1842 | run: bun install |
| 1840 | 1843 | |
| 1844 | # Idempotent: a body that already carries the offer is left alone, so a | |
| 1845 | # pull request opened as a draft and later marked ready is not offered | |
| 1846 | # a second set of boxes that tick independently of the first. | |
| 1847 | - name: Offer finishing touches | |
| 1848 | if: \${{ github.event.action != 'edited' }} | |
| 1849 | run: bunx @buddysh/buddy touch \${{ github.event.pull_request.number }} --offer --verbose | |
| 1850 | ||
| 1841 | 1851 | - name: Run finishing touches |
| 1852 | if: \${{ github.event.action == 'edited' }} | |
| 1842 | 1853 | run: bunx @buddysh/buddy touch \${{ github.event.pull_request.number }} --verbose |
| 1843 | 1854 | |
| 1844 | 1855 | # Post-merge actions. Guarded on the merged flag, because the closed action |