-
-
Notifications
You must be signed in to change notification settings - Fork 4
Add collector for Salford City Council #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Closes #132 Generated with Codex CLI by Moley-Bot
Formatted by Moley-Bot
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a new collector for Salford City Council, which is a great addition and adheres well to the project's style guide. However, two instances of missing URL encoding were identified when constructing requests to the council's API. This could lead to parameter injection vulnerabilities if user-supplied data (like postcodes) or externally-sourced data (like UPRNs) contain special characters. Remediation involves using proper URL encoding methods for all dynamic parameters in HTTP requests, specifically for the GetAddresses request body.
1da76b6 to
0803f86
Compare
| { | ||
| Name = "Household Waste", | ||
| Colour = BinColour.Black, | ||
| Keys = [ "Black bin", "Domestic Waste" ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Claude finished @BadgerHobbs's task in 5m 13s —— View job
✅ Task complete
Todo List:
- Read repository guidelines
- Read SalfordCityCouncil.cs
- Check style guide
- Analyze keys
- Remove unnecessary keys
- Commit and push changes
Changes made:
Removed the second (descriptive) key from each bin type in SalfordCityCouncil.cs per the style guide requirement (.gemini/styleguide.md:429-443) to "only include keys that are actually matched against the data source."
Updated Keys:
→[ "Black bin", "Domestic Waste" ][ "Black bin" ]→[ "Pink lidded bin", "Food and Garden Waste" ][ "Pink lidded bin" ]→[ "Blue bin", "Paper and Card" ][ "Blue bin" ]→[ "Brown bin", "Bottle and Can" ][ "Brown bin" ]
Rationale: ICS calendar SUMMARY fields typically use concise, color-based names rather than verbose descriptions. Keeping only the color-based keys aligns with the repository's style guide and reduces unnecessary code.
Commit: e09a8f8
|
Per the style guide, only include keys that are actually matched against the data source. Removed descriptive keys since ICS calendar SUMMARY fields typically use concise color-based names. Co-authored-by: Andrew Riggs <BadgerHobbs@users.noreply.github.com>
Summary
This PR adds a new bin collection data collector for Salford City Council.
ICollectorinterfaceCloses #132
Test Summary
Generated automatically by Moley-Bot using Codex CLI