Add the branches filter to the caller contract - #9
Merged
Conversation
Callers filter workflow_run at the trigger so runs are only created for Dependabot actions branches; keep the template in the header accurate.
There was a problem hiding this comment.
Pull request overview
Updates the reusable workflow’s “caller contract” header template to reflect that callers now filter workflow_run to Dependabot Actions branches, preventing runs from being created for unrelated branches when this workflow is copied into other repositories.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Changes:
- Document
workflow_run.branches: ["dependabot/github_actions/**"]in the caller contract example. - Clarify (in-comment) that this prevents creation of runs for other branches.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Comment-only: callers now filter
workflow_runat the trigger (branches: ["dependabot/github_actions/**"]) per review on the caller PRs, so runs are not created for other branches at all. Keep the header template accurate for the next repo that copies it.