Repository navigation
v1.3.0
·
29 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
We've moved! This repository has transferred from jayqi/failed-build-issue-action to drivendataorg/failed-build-issue-action. Old references will continue to redirect but we recommend updating.
- Changed action to use Node 24 runtime.
- Changed the
github-tokeninput to default to${{ github.token }}, the token GitHub Actions automatically provides to every job. Basic usage now needs nowith:block at all. Passinggithub-tokenexplicitly still works and is unchanged, and is still how you use a different account, such as a GitHub App or a personal access token. - Renamed the
refnametemplate variable torefName, matching the camelCase of the other template variables.refnamestill works but is deprecated and now logs a warning when a template uses it; it will be removed in a future major version. - Added a
refUrltemplate variable holding a complete, percent-encoded URL to the branch or tag. The defaultbody-templatenow uses it for the branch link. Prefer it over building a URL out ofrefNameyourself:refNameis display text, and for a pull request from a fork it is prefixed with the owner, e.g.,contributor:feature/foo, which is not a valid URL path. - Added
label-colorandlabel-descriptioninputs, which set the color and description of the label when the action creates it. Both have defaults, so a newly created label gets GitHub's failing-build red and a description naming this action as its source. Both only apply to newly created labels and not to existing labels. - Fixed
refNamenaming the wrong branch forpull_requestandworkflow_runevents, which had made the branch link 404 or point at the default branch rather than the branch that failed. - Fixed
refNametruncating branch and tag names containing slashes, so a branch likefeature/foono longer becomesfoowith a broken link. - Fixed the default
body-templatehardcodinghttps://github.com, which generated links to the wrong host on GitHub Enterprise Server. It now uses{{serverUrl}}. Rendered output on github.com is unchanged. - Fixed title and body templates HTML-escaping rendered values, which corrupted issue titles and code spans in issue and comment bodies.
- Fixed the search for an existing issue incorrectly matching pull requests. GitHub's REST API returns pull requests from the issues endpoint, so a pull request carrying the configured label could become the comment target and the action would never open a real issue. Pull requests are now skipped, and the action logs a warning naming any it finds with the label.
- Fixed the action making an unnecessary API request to search for existing issues when
always-create-new-issueistrue. - Fixed the incorrect
required: trueon all inputs, changing torequired: false. GitHub Actions did not enforcerequiredfor action inputs anyway, so this is a metadata fix and does not change behavior. - Fixed debug logging of errors printing
{}instead of the error. Debug output now includes the error message, stack trace, and, when the failure wraps a GitHub API error, the underlying status and response.