[FEATURE] Add PR linked-issue check action and workflow#1
Merged
John McCall (lowlydba) merged 11 commits intomainfrom Feb 12, 2026
Merged
[FEATURE] Add PR linked-issue check action and workflow#1John McCall (lowlydba) merged 11 commits intomainfrom
John McCall (lowlydba) merged 11 commits intomainfrom
Conversation
Introduce a composite GitHub Action that verifies a pull request has at least one linked issue via the GraphQL closingIssuesReferences field, plus a reusable workflow to run it. Adds action implementation (.github/actions/check-linked-issue/action.yml) and documentation (README.md) and a reusable workflow (.github/workflows/check-issue.yml). The action uses actions/github-script to query linked issues and fails the step if none are found; the workflow demonstrates usage and required permissions (contents: read, pull-requests: read). Also removes a placeholder .gitkeep file. Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
Add a debug/info log in the check-linked-issue Action to report how many linked issues the GraphQL query returned (in .github/actions/check-linked-issue/action.yml). Also change the workflow runner from ubuntu-latest to ubuntu-slim in .github/workflows/check-issue.yml to use a slimmer runner image. These changes improve observability and reduce runner footprint. Signed-off-by: John McCall <john@overturemaps.org>
…OvertureMaps/workflows into jmccall/create-linked-pr-action
Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
Introduce a new optional input `minimumLinkedIssues` (default 1) to the check-linked-issue action and parse it in the composite script so callers can require more than one linked issue. Update action.yml to declare the input and adjust messaging to show found vs required counts. Update README to document the new input and example usage, and add `issues: read` permission to the recommended permissions block. Signed-off-by: John McCall <john@overturemaps.org>
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.
Introduce a composite GitHub Action that verifies a pull request has at least one linked issue via the GraphQL closingIssuesReferences field, plus a reusable workflow to run it. Adds action implementation (.github/actions/check-linked-issue/action.yml) and documentation (README.md) and a reusable workflow (.github/workflows/check-issue.yml). The action uses actions/github-script to query linked issues and fails the step if none are found; the workflow demonstrates usage and required permissions (contents: read, pull-requests: read). Also removes a placeholder .gitkeep file.