Skip to content

Module Store listing gen > add config/agency_type#652

Merged
mmathieum merged 2 commits into
masterfrom
mm/agency_type
Apr 8, 2026
Merged

Module Store listing gen > add config/agency_type#652
mmathieum merged 2 commits into
masterfrom
mm/agency_type

Conversation

@mmathieum

Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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 logic across several shell scripts to dynamically update the TYPE_LABEL variable by reading from an optional agency_type configuration file. The review feedback consistently points out opportunities to improve the implementation by using standard 2-space indentation, removing unnecessary log noise when optional files are missing, and ensuring file path variables are properly quoted to handle potential spaces.

Comment thread shared-modules/MTREADME.md.MT.sh
Comment thread shared-modules/app-android/src/main/res/values/MTstrings.xml.MT.sh
Comment thread shared-modules/gh_repo_update_details.sh

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds support for a new config/agency_type override to customize the “type” label (e.g., Bus/Train/Bike) used across generated README content, GitHub repo metadata, Android string resources, and Play Store listing text/graphics scripts.

Changes:

  • Read optional config/agency_type and use it to override TYPE_LABEL in multiple generators.
  • Update GitHub repo description generation to incorporate the overridden type label.
  • Minor whitespace cleanup in several listing/graphic generation scripts (else formatting).

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
shared-modules/MTREADME.md.MT.sh Adds agency_type override to affect generated README header/type label.
shared-modules/gh_repo_update_details.sh Adds agency_type override to affect generated GitHub repo description.
shared-modules/app-android/src/main/res/values/MTstrings.xml.MT.sh Adds agency_type override for generated Android string resources.
shared-modules/app-android/src/main/res/values/MTgtfs_rts_strings.xml.MT.sh Adds agency_type override for GTFS-RTS strings resource generation.
shared-modules/app-android/src/main/play/listings/fr-FR/MTfull-description.txt.MT.sh Whitespace cleanup in conditional branches.
shared-modules/app-android/src/main/play/listings/en-US/MTtitle.txt.MT.sh Adds agency_type override to affect Play listing title generation.
shared-modules/app-android/src/main/play/listings/en-US/MTshort-description.txt.MT.sh Adds agency_type override to affect Play listing short description generation.
shared-modules/app-android/src/main/play/listings/en-US/MTfull-description.txt.MT.sh Adds agency_type override to affect Play listing full description generation + whitespace cleanup.
shared-modules/app-android/src/main/play/listings/en-US/graphics/feature-graphic/MT1.png.MT.sh Whitespace cleanup in conditional branches.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread shared-modules/MTREADME.md.MT.sh Outdated
Comment thread shared-modules/gh_repo_update_details.sh Outdated
Comment thread shared-modules/app-android/src/main/res/values/MTstrings.xml.MT.sh Outdated
Comment thread shared-modules/app-android/src/main/res/values/MTgtfs_rts_strings.xml.MT.sh Outdated
Comment thread shared-modules/app-android/src/main/play/listings/en-US/MTtitle.txt.MT.sh Outdated
@mmathieum mmathieum changed the title Module Store listing gen > add config/agency_type Module Store listing gen > add config/agency_type Apr 8, 2026
@mmathieum mmathieum merged commit 67fe171 into master Apr 8, 2026
@mmathieum mmathieum deleted the mm/agency_type branch April 8, 2026 21:50
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