Skip PR creation when only lastUpdated metadata changes#297
Merged
Conversation
- Add workflow run link to PR body - Update prompt to only update date when models are added - Add logic to detect date-only changes and skip PR creation - Tested with multiple scenarios (date-only, real changes, combined) Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add workflow link to PR body
Skip PR creation when only lastUpdated metadata changes
Feb 25, 2026
rajbos
approved these changes
Feb 25, 2026
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 model sync workflow created PR #291 containing only a metadata date change (
lastUpdated: "2026-02-20"→"2026-02-23"). This adds detection to skip PR creation for metadata-only updates and includes workflow run links for traceability.Changes
Prompt refinement (
.github/workflows/prompts/sync-models-prompt.md)lastUpdatedonly when models are addedChange detection (
.github/workflows/check-models.yml)grep -E '^[+-][^+-]'to count actual diff lines"lastUpdated"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}Detection Logic
Future runs will skip PRs for metadata-only changes while still creating PRs with workflow links when actual model updates occur.
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/repos/rajbos/github-copilot-token-usage/actions/workflows/check-models.yml/usr/bin/gh gh run list --workflow=check-models.yml --limit 30 --json createdAt,number,conclusion,event,url(http block)https://api.github.com/repos/rajbos/github-copilot-token-usage/actions/workflows/check-models.yml/runs/usr/bin/curl curl -s -H Accept: application/vnd.github+json REDACTED(http block)If you need me to access, download, or install something from one of these locations, you can either:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.