Skip to content

Add GitHub Actions workflow to create issues from Copilot PR review comments#10

Open
Copilot wants to merge 3 commits into
copilot/implement-new-featuresfrom
copilot/create-issues-from-copilot-comments
Open

Add GitHub Actions workflow to create issues from Copilot PR review comments#10
Copilot wants to merge 3 commits into
copilot/implement-new-featuresfrom
copilot/create-issues-from-copilot-comments

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 14, 2026

Copilot reviewed PR #8 and generated 9 comments/suggestions with no corresponding tracking issues. This workflow creates one GitHub issue per Copilot comment when triggered.

Workflow: .github/workflows/create-copilot-review-issues.yml

  • Triggered on push to this branch and via workflow_dispatch
  • Uses actions/github-script@v7 with issues: write permission
  • Idempotent: paginates all existing issues into a Set before creating — safe to re-run
  • Efficient: fetches all repo labels once into a Set; skips missing labels without failing

Issues created (9 total, sourced from PR #8 review)

File Issue
GithubRepos.jsx:54 Guard against non-array GitHub API response before .slice()
GlobalStyles.js:71 Narrow broad CSS transition selectors; add prefers-reduced-motion
DarkModeToggle.jsx:49 Prevent FOUC on dark mode initial load (useEffect fires post-paint)
Header.jsx:270 Case-sensitive #Contact vs #contact fragment mismatch
Footer.jsx:145 Footer quick link #contact doesn't match id="Contact"
Contact.jsx:92 Move id="Contact"id="contact" on <section>, not the form
BackToTop.jsx:42 Call handleScroll() on mount to initialize visibility
Skills.jsx:77 Replace hardcoded #ff9a8b gradient color with a CSS custom property
Certifications.jsx:34 Replace hardcoded #00d084 link color with a CSS custom property

Note: The workflow run is pending owner approval — GitHub requires a maintainer to approve the first run of a bot-authored workflow. Approve via the Actions tab to create the issues.

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 gh auth status (http block)
    • Triggering command: /usr/bin/gh gh auth status --hostname github.com (http block)
    • Triggering command: /usr/bin/gh gh issue list --repo Yasar2019/myPortfolio (http block)
  • https://api.github.com/repos/Yasar2019/myPortfolio
    • Triggering command: /usr/bin/curl curl -s -H Authorization: token ****** -H Accept: application/vnd.github.v3&#43;json REDACTED (http block)
  • https://api.github.com/repos/Yasar2019/myPortfolio/issues
    • Triggering command: /usr/bin/gh gh api repos/Yasar2019/myPortfolio/issues --method POST --field title=Test issue --field body=test (http block)

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

Original prompt

Check the review of GitHub Copilot and what he commented and create an issue for every comment or suggestion it made.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits March 14, 2026 23:02
…ents on PR #8

Co-authored-by: Yasar2019 <60102921+Yasar2019@users.noreply.github.com>
Co-authored-by: Yasar2019 <60102921+Yasar2019@users.noreply.github.com>
Copilot AI changed the title [WIP] Add issues based on Copilot review comments Add GitHub Actions workflow to create issues from Copilot PR review comments Mar 14, 2026
Copilot AI requested a review from Yasar2019 March 14, 2026 23:08
Copy link
Copy Markdown
Owner

@Yasar2019 Yasar2019 left a comment

Choose a reason for hiding this comment

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

Seems good

@Yasar2019 Yasar2019 marked this pull request as ready for review March 14, 2026 23:13
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 57de954860

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const existingLabelNames = new Set(allLabels.map(l => l.name));

// Fetch all existing issues (with pagination) to reliably detect duplicates
const existingIssues = await github.paginate(github.rest.issues.listForRepo, {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Exclude pull requests from duplicate-title check

github.rest.issues.listForRepo returns both issues and pull requests, so building existingTitles from that response can falsely mark a target issue as already present when a PR has the same title. In that case this workflow silently skips creating the intended tracking issue, so idempotency becomes incorrect for repos with title collisions; filter out items containing pull_request before populating the title set.

Useful? React with 👍 / 👎.

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.

2 participants