forked from 1b-agent/fieldcraft-upstream
ci: draft pull requests start no run; marking one ready does
CI and the packaging lint listen for ready_for_review too, and their pull-request jobs skip drafts, so a contributor's work in progress no longer takes runners from develop and the release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
1 parent
db561be51b
commit
7fdb348d05
2 files changed
+8
-3
No files matched your search
@@ -15,6 +15,8 @@ name: CI
|
|||||||
# Nightly and manual runs, and every release (release.yml), run all of it.
|
# Nightly and manual runs, and every release (release.yml), run all of it.
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
# A draft starts no run; marking it ready for review does.
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
paths:
|
paths:
|
||||||
- '**'
|
- '**'
|
||||||
- '!**/*.md'
|
- '!**/*.md'
|
||||||
@@ -56,7 +58,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
plan:
|
plan:
|
||||||
name: Plan (affected crates)
|
name: Plan (affected crates)
|
||||||
if: github.event.schedule != '41 4 * * 0' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository || github.event.pull_request.user.login == 'dependabot[bot]')
|
if: github.event.schedule != '41 4 * * 0' && (github.event_name != 'pull_request' || (!github.event.pull_request.draft && (github.event.pull_request.head.repo.full_name != github.repository || github.event.pull_request.user.login == 'dependabot[bot]')))
|
||||||
runs-on: ${{ github.event_name != 'pull_request' && vars.SELF_HOSTED_RUNNER || 'ubuntu-24.04' }}
|
runs-on: ${{ github.event_name != 'pull_request' && vars.SELF_HOSTED_RUNNER || 'ubuntu-24.04' }}
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
permissions:
|
permissions:
|
||||||
@@ -116,7 +118,7 @@ jobs:
|
|||||||
|
|
||||||
bots:
|
bots:
|
||||||
name: Claim and triage bot tests
|
name: Claim and triage bot tests
|
||||||
if: github.event.schedule != '41 4 * * 0' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository || github.event.pull_request.user.login == 'dependabot[bot]')
|
if: github.event.schedule != '41 4 * * 0' && (github.event_name != 'pull_request' || (!github.event.pull_request.draft && (github.event.pull_request.head.repo.full_name != github.repository || github.event.pull_request.user.login == 'dependabot[bot]')))
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
@@ -231,7 +233,7 @@ jobs:
|
|||||||
|
|
||||||
advisories:
|
advisories:
|
||||||
name: Dependency licences, advisories and sources
|
name: Dependency licences, advisories and sources
|
||||||
if: github.event.schedule != '41 4 * * 0' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository || github.event.pull_request.user.login == 'dependabot[bot]')
|
if: github.event.schedule != '41 4 * * 0' && (github.event_name != 'pull_request' || (!github.event.pull_request.draft && (github.event.pull_request.head.repo.full_name != github.repository || github.event.pull_request.user.login == 'dependabot[bot]')))
|
||||||
runs-on: ${{ github.event_name != 'pull_request' && vars.SELF_HOSTED_RUNNER || 'ubuntu-24.04' }}
|
runs-on: ${{ github.event_name != 'pull_request' && vars.SELF_HOSTED_RUNNER || 'ubuntu-24.04' }}
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ on:
|
|||||||
branches: [develop]
|
branches: [develop]
|
||||||
paths: [".github/workflows/**", "packaging/**"]
|
paths: [".github/workflows/**", "packaging/**"]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
# A draft starts no run; marking it ready for review does.
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
paths: [".github/workflows/**", "packaging/**"]
|
paths: [".github/workflows/**", "packaging/**"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -22,6 +24,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Packaging lint
|
name: Packaging lint
|
||||||
|
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in new issue
Block a user