Skip to content

Introduce shared/daily-pr-base.md for automated code-improvement PR workflows#29368

Merged
pelikhan merged 2 commits intomainfrom
copilot/refactor-shared-daily-pr-base
Apr 30, 2026
Merged

Introduce shared/daily-pr-base.md for automated code-improvement PR workflows#29368
pelikhan merged 2 commits intomainfrom
copilot/refactor-shared-daily-pr-base

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 2026

7 daily workflows duplicated the same activation-app + reporting + create-pull-request boilerplate. This PR centralizes that pattern into a new shared/daily-pr-base.md component, analogous to how daily-audit-base.md serves discussion workflows.

New shared component

shared/daily-pr-base.md bundles:

  • shared/activation-app.md — GitHub App token for authenticated skip-if-match searches
  • shared/reporting.md — report formatting guidelines
  • Parameterized create-pull-request + noop safe-outputs
imports:
  - uses: shared/daily-pr-base.md
    with:
      title-prefix: "[code-simplifier] "
      expires: "1d"
      labels: [refactoring, code-quality, automation]
      reviewers: [copilot]

Schema: title-prefix (required), expires (default 1d), labels (default [automation]), reviewers (default [copilot]).

Key YAML note: title-prefix uses "${{ github.aw.import-inputs.title-prefix }}" (quoted) since prefixes like [code-simplifier] would otherwise parse as a YAML sequence after substitution.

Migrated workflows (7)

Workflow Notes
code-simplifier.md Full — removed activation-app, reporting, create-pull-request
dead-code-remover.md Full — removed activation-app, create-pull-request, explicit noop
code-scanning-fixer.md Full — keeps security-analysis-base + add-labels
slide-deck-maintainer.md Full — gains default labels: [automation] (was unset)
ubuntu-image-analyzer.md Full — draft: false dropped (same as GitHub default); gains default reviewers: [copilot]
unbloat-docs.md Partial — adds activation-app (was missing); keeps own create-pull-request to preserve draft: true / auto-merge: true / fallback-as-issue: false
daily-rendering-scripts-verifier.md Full — keeps daily-audit-base alongside

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw -j ACCEPT /usr/bin/gh api graphql -f me: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f se \ echo "��� (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw owner=github -f /usr/bin/gh ache�� graphql -f er@0.33.0 -f owner=github DiscussionsEnablgraphql /usr/bin/gh (http block)
  • https://api.github.com/orgs/test-owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name ./../pkg/workflo-errorsas show /usr/bin/git /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/link show n-dir/bash git -C k/gh-aw/gh-aw config x_amd64/vet remote.origin.urnode rev-parse DiscussionsEnabl/tmp/TestHashConsistency_GoAndJavaScript1190994739/001/test-inlined-imports-enabled-with-env-template-expressions-in-body.md x_amd64/vet (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv -2069764871/base.md -2069764871/new.md /usr/bin/gh -errorsas -ifaceassert -nilfunc gh repo�� view owner/test-repo /usr/bin/git 0827-19259/test-node yTGM/K6yKAH7p5IW/opt/hostedtoolcache/node/24.14.1/x64/bin/npm 1/x64/bin/node git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv /tmp/gh-aw-test-runs/20260430-190827-19259/test-1483791828/custom/workflows remote /usr/bin/git '**/*.ts' '**/*.git show ed } } git conf�� user.email test@example.com (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv ring3449759954/0OUTPUT ache/go/1.25.8/x-d ache/go/1.25.8/x168.63.129.16 rror git run-script/lib/n--get ache/go/1.25.8/xremote.origin.url -o 3024625/b413/conINVALID,NEW -trimpath 3024625/b413/impDROP -p github.com/davecrev-parse -lang=go1.16 jqWy3vqedtzVW/U8nt9zLENvjKcOLdPac7/zhJWMtxx0i81O5psxxYi/jNeV8hZj--revs (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv /tmp/gh-aw-test-runs/20260430-190827-19259/test-1256131209 config /usr/bin/git remote.origin.urgit pkg/mod/github.crev-parse 3024625/b410/con--show-toplevel git rev-�� --show-toplevel 3024625/b410/console.test /usr/bin/git t0 stmain.go 1/x64/bin/node git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv --show-toplevel /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linu^remote\..*\.gh-resolved$ /usr/bin/git ErrorFormatting1git -trimpath /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel node /usr/bin/git /home/REDACTED/worgit url /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv actions/setup-cli/install.sh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv xterm-color (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/link /usr/bin/git 3024625/b441/sligit -buildtags e/git-receive-pack git rev-�� --show-toplevel (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv ithub/workflows -f es/.bin/sh -f owner=github -f /usr/bin/gh api on' --ignore-path ../../../.prettierignore -f 86_64/bash -f owner=github ed } } git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv xterm-color ./gh-aw er@0.33.0 ithub/workflows (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv /home/REDACTED/wor-errorsas show sh k/gh-aw/gh-aw rev-parse kflows/daily-sec-unreachable=false /usr/bin/gh api th .prettierignore --log-level=e!../../../pkg/workflow/js/**/*.json -f me: String!) { repository(owne../../../.prettierignore -f owner=github -f /usr/bin/gh (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel 3024625/b469/_testmain.go /usr/bin/gh --show-toplevel .cfg 64/pkg/tool/linu--show-toplevel gh run view 12345 /usr/bin/git nonexistent/repogit --json status,conclusio--show-toplevel git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /tmp/gh-aw-test-runs/20260430-190827-19259/test-4025800963/.github/workflows s/3/artifacts /usr/bin/git remote.origin.urgit rev-parse x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /usr/bin/git k/gh-aw/gh-aw show x_amd64/vet git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel x_amd64/compile /usr/bin/git graphql .cfg x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /usr/bin/git --noprofile bash At,event,headBra--show-toplevel git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows 53 /usr/bin/git ACCEPT (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv xterm-color (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /tmp/go-build2433024625/b472/scripts.test -importcfg /opt/hostedtoolcache/node/24.14.1/x64/bin/node -s -w -buildmode=exe node /tmp�� /home/REDACTED/work/gh-aw/gh-aw/.github/workflows/artifacts-summary.md -extld=gcc /usr/bin/git tion-app ver.lock.yml x_amd64/vet git (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv ithub/workflows -f /usr/bin/infocmp l owner=github -f infocmp -1 k/gh-aw/gh-aw/.github/workflows (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw config n-dir/bash remote.origin.urhead (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .default_branch (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .default_branch /home/REDACTED/work/gh-aw/gh-aw/.github/workflows rev-parse 1/x64/bin/bash (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.1.2
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv --show-toplevel 64/pkg/tool/linuorigin /usr/bin/git xterm-color .cfg 64/pkg/tool/linu--show-toplevel /usr/bin/git remo�� -v 64/pkg/tool/linux_amd64/vet /usr/bin/git 469729105/.githugit bash ache/go/1.25.8/x--show-toplevel git (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv /home/REDACTED/work/gh-aw/gh-aw/.github/workflows/agent-performance-analyzer.md -goversion /usr/bin/git -c=4 -nolocalimports -importcfg git conf�� user.name Test User /usr/bin/gh k/gh-aw/gh-aw/.ggit -f x_amd64/vet gh (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv /tmp/gh-aw-test-runs/20260430-190827-19259/test-3902571670/.github/workflows config /opt/hostedtoolcache/node/24.14.1/x64/bin/node remote.origin.urgit -f x_amd64/vet /opt/hostedtoolcache/node/24.14.1/x64/bin/node /tmp�� thImports2340290685/001 (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-04-23 fflib -f 64/pkg/tool/linux_amd64/vet k/gh�� tiWWHt2_G show 64/pkg/tool/linux_amd64/vet /home/REDACTED/worgit show erignore 64/pkg/tool/linuTest User (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-03-31 -f p/bin/bash Bq/aMwv_nfK75JUCd43tsyO/DAaZteIL--auto k/gh�� add-source-path-2872573516/.gith--detach .cfg 64/pkg/tool/linux_amd64/vet -f owner=github erignore 64/pkg/tool/linu--auto (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-01-30 rev-parse n-dir/bash 64/pkg/tool/linux_amd64/vet k/gh�� /home/REDACTED/work/gh-aw/gh-aw/.github/workflows rev-parse 64/pkg/tool/linux_amd64/vet graphql -f erignore 64/pkg/tool/linutest@example.com (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name infocmp 64/pkg/tool/linux_amd64/compile xterm-color (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 on ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /../../.prettiergit erignore (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name git 64/pkg/tool/linux_amd64/vet /home/REDACTED/worgit show /snap/bin/bash 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 git stants.test /home/REDACTED/wor/usr/bin/git config p/bin/bash stants.test 4330�� ithout_min-integrity1459397772/001 3024625/b095/vet.cfg 64/pkg/tool/linux_amd64/link --noprofile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name git 64/pkg/tool/linux_amd64/compile /home/REDACTED/worgit rev-parse le-check.lock.ym--show-toplevel 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 LsRemoteWithRealGitbranch_with_hyphen2291536004/001' .test /home/REDACTED/worinfocmp rev-parse nfig/composer/vexterm-color .test 4330�� ithout_min-integrity1459397772/001 3024625/b091/vet.cfg 1/x64/bin/node --noprofile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name mLsRemoteWithRealGitbranch_with_hyphen2291536004/001' .cfg /repos/github/ghgit --jq repository(owne--show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet --no�� approach-validator.md 64/pkg/tool/linurev-parse .cfg pires\|reviewersgit s/dead-code-remorev-parse rgo/bin/bash ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 on .cfg /../../.prettiergit erignore /home/REDACTED/.do--show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name bash 64/pkg/tool/linux_amd64/compile --noprofile (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 on ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /../../.prettiergit erignore k/_temp/uv-pytho--show-toplevel ache/go/1.25.8/x64/pkg/tool/linuconfig (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name bash 64/pkg/tool/linux_amd64/vet --noprofile (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 on .cfg /../../.prettiergit erignore ck.yml ache/go/1.25.8/x64/pkg/tool/linurev-parse (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name bash 64/pkg/tool/linux_amd64/compile --noprofile (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 on .cfg /../../.prettiergit erignore repository(owne--show-toplevel ache/go/1.25.8/x64/pkg/tool/linuremote (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path ./../pkg/workflo-errorsas ave-search 1/x64/bin/bash ithub/workflows (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 owner=github -f x_amd64/vet /opt�� */*.json' '!../.-errorsas -- x_amd64/vet name r.lock.yml sh x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 -f nfig/composer/veadd 64/pkg/tool/linuupstream (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build2433024625/b404/cli.test /tmp/go-build2433024625/b404/cli.test -test.testlogfile=/tmp/go-build2433024625/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true l (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.47.4
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv tags/v6 ache/go/1.25.8/x64/pkg/tool/linuupstream sv 0827-19259/test-git /tmp/go-build243rev-parse /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv se 3024625/b004/vet.cfg .cfg --noprofile (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv iant-1204872465/.github/workflows rev-parse x_amd64/vet k/gh-aw/gh-aw rev-parse kflows/smoke-ope-unreachable=false x_amd64/vet 1/x6�� xterm-color git x_amd64/vet son config tnet/tools/bash pBvTgXO/G1KutSxXHjoE8hqd2SJr (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv */*.ts' '**/*.js-errorsas show x_amd64/vet l show $name) { has/tmp/gh-aw-test-runs/20260430-190827-19259/test-3902571670/.github/workflows x_amd64/vet 1/x6�� [^"]*" s/dead-code-remover.lock.yml 64/pkg/tool/linux_amd64/vet son rev-parse DiscussionsEnabled } } 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv */*.ts' '**/*.js-s config x_amd64/vet remote.origin.urgit config DiscussionsEnabl/tmp/gh-aw-test-runs/20260430-190827-19259/test-3902571670/.github/workflows x_amd64/vet 1/x6�� diff.go export.go x_amd64/vet son config /usr/bin/gh x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw config x_amd64/vet remote.origin.urgit r.lock.yml $name) { has/tmp/gh-aw-test-runs/20260430-190827-19259/test-3902571670/.github/workflows x_amd64/vet 1/x6�� lGitcustom_branch4244803713/001' lGitcustom_branch4244803713/001' x_amd64/compile son owner=github -f x_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv */*.ts' '**/*.json' --ignore-path ../../../.prettierignore erena-mcp-server:latest x_amd64/vet k/gh-aw/gh-aw/.ggit (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv rity2448360575/001 3024625/b056/vet.cfg .cfg --noprofile (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion --noprofile (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo x_amd64/compile ithub/workflows -f /usr/bin/gh x_amd64/compile -C /home/REDACTED/work/gh-aw/gh-aw show x_amd64/vet k/gh-aw/gh-aw/.ggit -f $name) { has--show-toplevel x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo x_amd64/compile remote.origin.urgit rev-parse ndor/bin/bash x_amd64/compile -C /home/REDACTED/work/gh-aw/gh-aw/.github/workflows erena-mcp-server:latest x_amd64/vet remote.origin.ur/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet dules/flatted/go-atomic 64/bin/bash x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state .cfg ithub/workflows (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name /home/REDACTED/wor-errorsas est /usr/bin/gh ithub/workflows show (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch "prettier" --write '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path ../.git bash 3024625/b173/vet.cfg --noprofile git ache/go/1.25.8/x--show-toplevel /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linuremote -ato�� -bool -buildtags ache/node/24.14.1/x64/bin/node -errorsas -ifaceassert -nilfunc /opt/hostedtoolcache/go/1.25.8/xremote.origin.url (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Refactor to introduce shared/daily-pr-base.md for PR workflows Introduce shared/daily-pr-base.md for automated code-improvement PR workflows Apr 30, 2026
Copilot AI requested a review from gh-aw-bot April 30, 2026 19:16
@pelikhan pelikhan marked this pull request as ready for review April 30, 2026 19:36
Copilot AI review requested due to automatic review settings April 30, 2026 19:36
@pelikhan pelikhan merged commit 3977620 into main Apr 30, 2026
20 checks passed
@pelikhan pelikhan deleted the copilot/refactor-shared-daily-pr-base branch April 30, 2026 19:36
@github-actions github-actions Bot mentioned this pull request Apr 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Centralizes duplicated “daily workflow that creates a PR” configuration into a shared importable component and migrates multiple workflows to use it.

Changes:

  • Added shared/daily-pr-base.md to bundle activation-app, reporting guidelines, and standardized create-pull-request/noop safe-outputs.
  • Updated 7 workflows to import the new base and removed duplicated per-workflow boilerplate.
  • Regenerated the corresponding .lock.yml files to reflect the new import structure.
Show a summary per file
File Description
.github/workflows/shared/daily-pr-base.md New shared base for daily PR-creating workflows (imports + safe-outputs).
.github/workflows/code-simplifier.md Migrates to shared/daily-pr-base.md import with workflow-specific parameters.
.github/workflows/code-simplifier.lock.yml Regenerated lock to reflect new shared base import and rendered config.
.github/workflows/dead-code-remover.md Migrates to shared/daily-pr-base.md and removes duplicated safe-outputs block.
.github/workflows/dead-code-remover.lock.yml Regenerated lock to reflect new shared base import and rendered config.
.github/workflows/code-scanning-fixer.md Migrates PR-creation config to shared base while keeping security-analysis base + label constraints.
.github/workflows/code-scanning-fixer.lock.yml Regenerated lock to reflect combined imports and safe-outputs config.
.github/workflows/slide-deck-maintainer.md Migrates to shared base and removes local create-pull-request safe-outputs boilerplate.
.github/workflows/slide-deck-maintainer.lock.yml Regenerated lock to reflect new shared base import and rendered config.
.github/workflows/ubuntu-image-analyzer.md Migrates to shared base and removes local create-pull-request safe-outputs block.
.github/workflows/ubuntu-image-analyzer.lock.yml Regenerated lock to reflect new shared base import and rendered config.
.github/workflows/unbloat-docs.md Adds shared base import (activation-app + reporting), while retaining custom safe-outputs behavior.
.github/workflows/unbloat-docs.lock.yml Regenerated lock to reflect new shared base import and rendered config.
.github/workflows/daily-rendering-scripts-verifier.md Migrates PR-creation safe-outputs to shared base alongside existing daily-audit-base import.
.github/workflows/daily-rendering-scripts-verifier.lock.yml Regenerated lock to reflect new shared base import and rendered config.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 15/15 changed files
  • Comments generated: 2

Comment on lines +24 to +28
type: array
default: [automation]
description: "Labels to apply to created PRs"
reviewers:
type: array
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

labels and reviewers are declared as type: array but the schema omits an items definition. This means item types won’t be validated (e.g., non-string entries would be accepted) even in strict: true workflows. Consider adding items: { type: string } for both fields to match other import-schema array conventions (e.g., shared/apm.md).

Suggested change
type: array
default: [automation]
description: "Labels to apply to created PRs"
reviewers:
type: array
type: array
items:
type: string
default: [automation]
description: "Labels to apply to created PRs"
reviewers:
type: array
items:
type: string

Copilot uses AI. Check for mistakes.
with:
title-prefix: "[ubuntu-image] "
expires: "2d"
labels: [documentation, automation, infrastructure]
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This migration drops the explicit draft: false create-pull-request configuration. In this repo’s safe-outputs implementation, create_pull_request defaults drafts to true when draft is unset (see actions/setup/js/create_pull_request.cjs:541 where parseBoolTemplatable(config.draft, true) is used). As a result, this workflow will start creating draft PRs. Fix by explicitly setting draft: false for this workflow (either by reintroducing a local safe-outputs.create-pull-request.draft: false override, or by extending shared/daily-pr-base.md with an optional draft input and passing draft: false here).

Suggested change
labels: [documentation, automation, infrastructure]
labels: [documentation, automation, infrastructure]
draft: false

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[refactoring] Introduce shared/daily-pr-base.md for automated code-improvement PR workflows

4 participants