Skip to content

[FEATURE] Add PR linked-issue check action and workflow#1

Merged
John McCall (lowlydba) merged 11 commits intomainfrom
jmccall/create-linked-pr-action
Feb 12, 2026
Merged

[FEATURE] Add PR linked-issue check action and workflow#1
John McCall (lowlydba) merged 11 commits intomainfrom
jmccall/create-linked-pr-action

Conversation

@lowlydba
Copy link
Copy Markdown
Contributor

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.

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>
@lowlydba John McCall (lowlydba) marked this pull request as ready for review February 12, 2026 20:10
@lowlydba John McCall (lowlydba) linked an issue Feb 12, 2026 that may be closed by this pull request
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>
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>
@lowlydba John McCall (lowlydba) changed the title [WIP] Add PR linked-issue check action and workflow [FEATURE] Add PR linked-issue check action and workflow Feb 12, 2026
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>
@lowlydba John McCall (lowlydba) merged commit 853bf7e into main Feb 12, 2026
3 checks passed
@lowlydba John McCall (lowlydba) deleted the jmccall/create-linked-pr-action branch February 12, 2026 20:55
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.

Create new GHA for checking for Linked Issues

1 participant