Skip to content

v1.3.0

Choose a tag to compare

@jayqi jayqi released this 24 Aug 02:44
· 29 commits to main since this release
Immutable release. Only release title and notes can be modified.
940568c

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-token input to default to ${{ github.token }}, the token GitHub Actions automatically provides to every job. Basic usage now needs no with: block at all. Passing github-token explicitly 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 refname template variable to refName, matching the camelCase of the other template variables. refname still 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 refUrl template variable holding a complete, percent-encoded URL to the branch or tag. The default body-template now uses it for the branch link. Prefer it over building a URL out of refName yourself: refName is 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-color and label-description inputs, 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 refName naming the wrong branch for pull_request and workflow_run events, which had made the branch link 404 or point at the default branch rather than the branch that failed.
  • Fixed refName truncating branch and tag names containing slashes, so a branch like feature/foo no longer becomes foo with a broken link.
  • Fixed the default body-template hardcoding https://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-issue is true.
  • Fixed the incorrect required: true on all inputs, changing to required: false. GitHub Actions did not enforce required for 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.