Update GitHub issue retrieval to return closed issues with state details - #675
Open
conorheffron with Copilot wants to merge 5 commits into
Open
Update GitHub issue retrieval to return closed issues with state details#675conorheffron with Copilot wants to merge 5 commits into
conorheffron with Copilot wants to merge 5 commits into
Conversation
Agent-Logs-Url: https://github.com/conorheffron/ironoc/sessions/6b4e3309-774e-4662-ac5a-ac31e7e9824b Co-authored-by: conorheffron <8218626+conorheffron@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance iRonoc API to pull closed issues
Update GitHub issue retrieval to return closed issues with state details
May 23, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the backend GitHub-issues retrieval to explicitly request closed issues and ensures the issue state field is preserved end-to-end (GitHub payload → DTO → domain → controller JSON), aligning tests and fixtures with the closed-issue contract.
Changes:
- Updated the configured GitHub issues endpoint to request
state=closed(previouslystate=all). - Updated the issues JSON test fixture to include
"state": "closed". - Updated unit/integration tests to assert
stateis mapped and returned as"closed".
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/main/resources/application.yml |
Changes GitHub issues endpoint query to state=closed. |
src/test/resources/json/test_issues_response.json |
Adds explicit "state": "closed" to fixture issues. |
src/test/java/net/ironoc/portfolio/service/GitDetailsServiceTest.java |
Updates issues endpoint constant and asserts state is mapped into DTO/domain. |
src/test/java/net/ironoc/portfolio/controller/GitProjectsControllerIntegrationTest.java |
Updates expected controller JSON to include "state":"closed". |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
conorheffron
marked this pull request as ready for review
June 14, 2026 15:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The issues API path currently fetches a broader issue set and does not consistently surface closed issue state in expected responses. This change scopes GitHub issue GET requests to closed issues and aligns service/integration expectations with closed-issue payloads.
API request behavior
state=all→state=closedsrc/main/resources/application.ymlIssue payload expectations
src/test/resources/json/test_issues_response.jsonService + controller contract alignment
src/test/java/net/ironoc/portfolio/service/GitDetailsServiceTest.javasrc/test/java/net/ironoc/portfolio/controller/GitProjectsControllerIntegrationTest.javaWarning
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:
ads.mozilla.org/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofileXXoLDy(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileSs9yiL(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileIVguXw(dns block)detectportal.firefox.com/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileSs9yiL(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileIVguXw(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofileXXoLDy(dns block)firefox.settings.services.mozilla.com/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileSs9yiL(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileIVguXw(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofileXXoLDy(dns block)incoming.telemetry.mozilla.org/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofileXXoLDy(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileIVguXw(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileSs9yiL(dns block)ironoc.net/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofileXXoLDy(dns block)support.mozilla.org/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileSs9yiL(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileIVguXw(dns block)/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileeIGkac(dns block)www.ironoc.net/usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofileXXoLDy(dns block)If you need me to access, download, or install something from one of these locations, you can either: