Skip to content

Create summary.yml#1

Open
aidaiprivate-source wants to merge 13 commits into
mainfrom
patch-1
Open

Create summary.yml#1
aidaiprivate-source wants to merge 13 commits into
mainfrom
patch-1

Conversation

@aidaiprivate-source

@aidaiprivate-source aidaiprivate-source commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Documentation

    • Updated changelog with release notes for versions 1.0.36–1.0.48, detailing bug fixes and CLI behavior changes.
    • Corrected GitHub Copilot API documentation reference URLs.
  • Chores

    • Added GitHub Actions automation for enhanced issue processing workflows.

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds a new GitHub Actions workflow that automatically summarizes newly opened issues using AI inference, and concurrently updates the changelog with release notes for recent versions (1.0.48–1.0.36) and corrects a documentation URL reference.

Changes

Issue Auto-Summarization Workflow

Layer / File(s) Summary
Workflow trigger, permissions, and step execution
.github/workflows/summary.yml
Workflow triggers on newly opened GitHub issues, configures permissions for issue writes and model inference reads, then chains steps to check out the repo, invoke the AI inference action with an issue-summarization prompt, and post the generated summary as a comment using gh issue comment.

Release Documentation Updates

Layer / File(s) Summary
Release notes and URL correction
changelog.md
New changelog sections added for releases 1.0.48 through 1.0.36 with bullet-point summaries of CLI changes and fixes; an older release (0.0.332) entry has its documentation link updated to remove the locale path segment.

🎯 2 (Simple) | ⏱️ ~8 minutes

🐰 A workflow springs to life, summarizing each issue with care,
While changelogs grow fat with releases to declare!
Automation hops forward, docs bloom bright—
All for the CLI to work just right! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title 'Create summary.yml' describes only one of two file changes and ignores the significant changelog.md updates. The title focuses on the workflow file while omitting the changelog modifications that add release notes for versions 1.0.48 through 1.0.36. Consider revising the title to reflect both major changes, such as 'Add issue summary workflow and update changelog' or select the most significant change if a single focus is preferred.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch patch-1

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
changelog.md (1)

297-297: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Use a literal CLI flag instead of an em dash.

Line 297 says “Connect to CLI remote control sessions from the —resume picker”. This should be --resume (double hyphen) to avoid misleading users.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@changelog.md` at line 297, Replace the em dash version of the flag in the
changelog entry that currently reads "—resume picker" with the literal CLI flag
form --resume (e.g., change "—resume picker" to "--resume picker") so the
documentation shows the correct double-hyphen flag syntax.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/summary.yml:
- Line 17: Replace the mutable action tags with immutable 40-character commit
SHAs: locate the uses lines referencing actions/checkout@v4 and
actions/ai-inference@v1 in the workflow and change each to the audited commit
SHA you trust (e.g., actions/checkout@<40-char-sha> and
actions/ai-inference@<40-char-sha>), ensuring you update both occurrences so the
workflow pins to specific commits rather than floating tags.
- Around line 9-17: Remove the unnecessary checkout step and the contents: read
permission, keep only issues: write and models: read for the GH CLI/AI steps;
also replace the action references actions/checkout@v4 and
actions/ai-inference@v1 with their pinned commit SHAs (use the full commit@sha
form) to harden the workflow. Ensure the gh issue comment step still works with
issues: write + models: read and remove the entire "steps: - name: Checkout
repository uses: actions/checkout@..." block and the "contents: read" entry
under permissions, updating the two action uses to commit SHAs instead of the
short tags.

In `@changelog.md`:
- Line 86: Fix the typo in the release note sentence "Extensions now load in
prompt mode (-p). User extensions load by default; project extensions alnd
management tools require GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS=true." by
replacing "alnd" with "and" so the sentence reads "...project extensions and
management tools require GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS=true." Update the
string in changelog.md where this exact sentence appears.

---

Outside diff comments:
In `@changelog.md`:
- Line 297: Replace the em dash version of the flag in the changelog entry that
currently reads "—resume picker" with the literal CLI flag form --resume (e.g.,
change "—resume picker" to "--resume picker") so the documentation shows the
correct double-hyphen flag syntax.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5bc99308-0e6b-41d6-9a8c-8c3215a15d8a

📥 Commits

Reviewing files that changed from the base of the PR and between d7a0581 and 55f5349.

📒 Files selected for processing (2)
  • .github/workflows/summary.yml
  • changelog.md

Comment on lines +9 to +17
runs-on: ubuntu-latest
permissions:
issues: write
models: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

ls -la .github/workflows || true
echo "---- summary.yml ----"
sed -n '1,200p' .github/workflows/summary.yml

echo "---- feature-request-comment.yml (if exists) ----"
if [ -f .github/workflows/feature-request-comment.yml ]; then
  sed -n '1,220p' .github/workflows/feature-request-comment.yml
else
  echo "MISSING: .github/workflows/feature-request-comment.yml"
fi

echo "---- find other uses: actions/checkout / gh issue comment patterns ----"
rg -n --hidden "actions/checkout@|gh issue comment|persist-credentials|GH_TOKEN" .github/workflows

Repository: aidaiprivate-source/copilot-cli

Length of output: 4118


🏁 Script executed:

#!/bin/bash
set -euo pipefail
rg -n --hidden "persist-credentials" .github/workflows || true
rg -n --hidden "uses:\s*actions/ai-inference@" .github/workflows
rg -n --hidden "uses:\s*actions/checkout@" .github/workflows

Repository: aidaiprivate-source/copilot-cli

Length of output: 213


🌐 Web query:

actions/ai-inference@v1 GitHub Action requirements needs checkout

💡 Result:

The actions/ai-inference@v1 GitHub Action does not inherently require the actions/checkout action to function [1][2][3]. The primary requirement for this action is the configuration of the correct permissions in your workflow file [1][3]. To use actions/ai-inference@v1, you must include the following permissions block in your workflow [1][3]: permissions: models: read You only need to use actions/checkout if your workflow requires access to the repository's source code, such as when reading prompt files from the repository (e.g., using the prompt-file input) [1][2]. If you are providing your prompts directly via the prompt input or generating them dynamically within the workflow, actions/checkout is unnecessary [1][3].

Citations:


Remove unnecessary actions/checkout / drop contents: read.
Nothing after checkout reads the working tree; actions/ai-inference@v1 uses inline prompt and the gh issue comment step only needs issues: write + models: read.

  • Supply-chain hardening: pin actions/checkout@v4 and actions/ai-inference@v1 to commit SHAs.
Suggested change
   summary:
     runs-on: ubuntu-latest
     permissions:
       issues: write
       models: read
-      contents: read
 
     steps:
-      - name: Checkout repository
-        uses: actions/checkout@v4
-
       - name: Run AI inference
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
runs-on: ubuntu-latest
permissions:
issues: write
models: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
runs-on: ubuntu-latest
permissions:
issues: write
models: read
steps:
- name: Run AI inference
🧰 Tools
🪛 zizmor (1.25.2)

[warning] 16-17: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[error] 17-17: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/summary.yml around lines 9 - 17, Remove the unnecessary
checkout step and the contents: read permission, keep only issues: write and
models: read for the GH CLI/AI steps; also replace the action references
actions/checkout@v4 and actions/ai-inference@v1 with their pinned commit SHAs
(use the full commit@sha form) to harden the workflow. Ensure the gh issue
comment step still works with issues: write + models: read and remove the entire
"steps: - name: Checkout repository uses: actions/checkout@..." block and the
"contents: read" entry under permissions, updating the two action uses to commit
SHAs instead of the short tags.


steps:
- name: Checkout repository
uses: actions/checkout@v4

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Locate and display the relevant workflow file
ls -la .github/workflows || true
sed -n '1,120p' .github/workflows/summary.yml | nl -ba

# Show the exact uses lines near the reported locations
sed -n '1,60p' .github/workflows/summary.yml | nl -ba | sed -n '1,60p'

# Search for any stated pinning policy in the repo
rg -n --hidden --glob '!.git/*' -S "pin(n|ning)?|commit SHA|immutable commit|actions/checkout@|supply-chain|supply chain|dependabot|github actions.*pin" . \
  || true

# Search other workflows for SHA-pinned vs tag-pinned uses entries for context
rg -n --hidden --glob '!.git/*' -S "uses:\s*actions/checkout@|uses:\s*actions/[^ @]+@v" .github/workflows || true
rg -n --hidden --glob '!.git/*' -S "uses:\s*actions/[^ @]+@([0-9a-f]{40}|[0-9a-f]{7,})" .github/workflows || true

Repository: aidaiprivate-source/copilot-cli

Length of output: 1011


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== summary.yml (first 80 lines with line numbers) =="
awk '{printf "%4d\t%s\n", NR, $0}' .github/workflows/summary.yml | sed -n '1,80p'

echo
echo "== uses: lines in summary.yml =="
awk '{if ($0 ~ /uses:[[:space:]]*[^[:space:]]+/) printf "%4d\t%s\n", NR, $0}' .github/workflows/summary.yml

echo
echo "== Find pinning policy / wording in repo (search for docs or rules) =="
rg -n --hidden --glob '!.git/*' -S "pin(n|ning)?|commit SHA|immutable commit|supply-chain|supply chain|audit(ed)?|policy.*pin|github actions.*pin|dependabot" . || true

echo
echo "== Other workflows for SHA-pinned vs tag-pinned uses patterns =="
rg -n --hidden --glob '!.git/*' -S "uses:[[:space:]]+actions/[^[:space:]@]+@v[0-9]+(\.[0-9]+)*|uses:[[:space:]]+actions/[^[:space:]@]+@v[0-9]+" .github/workflows || true
rg -n --hidden --glob '!.git/*' -S "uses:[[:space:]]+actions/[^[:space:]@]+@[0-9a-f]{40}" .github/workflows || true

Repository: aidaiprivate-source/copilot-cli

Length of output: 5449


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Broad search for action pinning policy keywords =="
rg -n --hidden --glob '!.git/*' -S "actions/|github\.com/actions|pin(n|ning)|immutable|commit sha|sha256|supply chain|audit|dependabot|workflow.*(pin|sha|commit)" . || true

echo
echo "== Search for existing SHA-pinned uses entries anywhere =="
rg -n --hidden --glob '!.git/*' -S "uses:[[:space:]]+[^[:space:]@]+@[0-9a-f]{40}" .github/workflows || true

echo
echo "== Show all uses: lines across workflows (tag-only snapshot) =="
rg -n --hidden --glob '!.git/*' "uses:[[:space:]]+[^[:space:]]+@[v0-9][^[:space:]]*" .github/workflows || true

Repository: aidaiprivate-source/copilot-cli

Length of output: 2686


Pin GitHub Actions to immutable commit SHAs in summary.yml.

  • .github/workflows/summary.yml line 17: actions/checkout@v4
  • .github/workflows/summary.yml line 21: actions/ai-inference@v1

Both are movable tags; pin each uses: entry to the audited 40-character commit SHA you intend to trust.

🧰 Tools
🪛 zizmor (1.25.2)

[warning] 16-17: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[error] 17-17: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/summary.yml at line 17, Replace the mutable action tags
with immutable 40-character commit SHAs: locate the uses lines referencing
actions/checkout@v4 and actions/ai-inference@v1 in the workflow and change each
to the audited commit SHA you trust (e.g., actions/checkout@<40-char-sha> and
actions/ai-inference@<40-char-sha>), ensuring you update both occurrences so the
workflow pins to specific commits rather than floating tags.

Comment thread changelog.md
- Remote session connection errors show your logged-in account and tailored remediation steps
- Markdown formatting renders in ask user prompt questions
- Add experimental MCP Tasks support: MCP tools with `taskSupport: "required"` run as non-blocking background agents trackable via `list_agents` and `read_agent` (available when experimental mode is enabled, e.g. via `/experimental on` or the `--experimental` flag)
- Extensions now load in prompt mode (-p). User extensions load by default; project extensions alnd management tools require GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS=true.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix typo in release note text (alndand).

Line 86 has a user-facing typo: “project extensions alnd management tools…”. Please correct it to “and”.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@changelog.md` at line 86, Fix the typo in the release note sentence
"Extensions now load in prompt mode (-p). User extensions load by default;
project extensions alnd management tools require
GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS=true." by replacing "alnd" with "and" so
the sentence reads "...project extensions and management tools require
GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS=true." Update the string in changelog.md
where this exact sentence appears.

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.

1 participant