Add GitHub Actions workflow to create issues from Copilot PR review comments#10
Conversation
…ents on PR #8 Co-authored-by: Yasar2019 <60102921+Yasar2019@users.noreply.github.com>
Co-authored-by: Yasar2019 <60102921+Yasar2019@users.noreply.github.com>
There was a problem hiding this comment.
💡 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, { |
There was a problem hiding this comment.
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 👍 / 👎.
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.ymlpushto this branch and viaworkflow_dispatchactions/github-script@v7withissues: writepermissionSetbefore creating — safe to re-runSet; skips missing labels without failingIssues created (9 total, sourced from PR #8 review)
GithubRepos.jsx:54.slice()GlobalStyles.js:71prefers-reduced-motionDarkModeToggle.jsx:49useEffectfires post-paint)Header.jsx:270#Contactvs#contactfragment mismatchFooter.jsx:145#contactdoesn't matchid="Contact"Contact.jsx:92id="Contact"→id="contact"on<section>, not the formBackToTop.jsx:42handleScroll()on mount to initialize visibilitySkills.jsx:77#ff9a8bgradient color with a CSS custom propertyCertifications.jsx:34#00d084link color with a CSS custom propertyWarning
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/usr/bin/gh gh auth status(http block)/usr/bin/gh gh auth status --hostname github.com(http block)/usr/bin/gh gh issue list --repo Yasar2019/myPortfolio(http block)https://api.github.com/repos/Yasar2019/myPortfolio/usr/bin/curl curl -s -H Authorization: token ****** -H Accept: application/vnd.github.v3+json REDACTED(http block)https://api.github.com/repos/Yasar2019/myPortfolio/issues/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
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.