[PR #6641] Fix missing final newline in generated release notes #6645

Closed
opened 2026-02-28 21:31:02 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6641

State: closed
Merged: Yes


Files created by yarn generate:release-notes lack a trailing newline, causing yarn lint to fail due to the insert_final_newline = true requirement in .editorconfig.

Changes

  • Added newline character at end of template string in getFileContents() function
 function getFileContents(type: string, username: string, summary: string) {
   return `---
 category: ${type}
 authors: [${username}]
 ---
 
-${summary}`;
+${summary}
+`;
 }

Generated release note files now comply with formatting requirements enforced by oxfmt.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/actualbudget/actual/issues
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/actual/actual/node_modules/ts-node/dist/bin.js ./bin/release-note-generator.ts (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[Bug]: yarn generate:release-notes generates files which trigger lint warnings</issue_title>
<issue_description>### Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

When you run yarn generate:release-notes, it asks a series of questions and then creates a file based on your answers. However, if you use that file as-is, it will create a lint error when running yarn lint due to a missing newline at the end of the file

How can we reproduce the issue?

run yarn generate:release-notes and then yarn lint

Where are you hosting Actual?

Locally via Yarn

What browsers are you seeing the problem on?

Other

Operating System

Linux</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6641 **State:** closed **Merged:** Yes --- Files created by `yarn generate:release-notes` lack a trailing newline, causing `yarn lint` to fail due to the `insert_final_newline = true` requirement in `.editorconfig`. ## Changes - Added newline character at end of template string in `getFileContents()` function ```diff function getFileContents(type: string, username: string, summary: string) { return `--- category: ${type} authors: [${username}] --- -${summary}`; +${summary} +`; } ``` Generated release note files now comply with formatting requirements enforced by `oxfmt`. > [!WARNING] > > <details> > <summary>Firewall rules blocked me from connecting to one or more addresses (expand for details)</summary> > > #### I tried to connect to the following addresses, but was blocked by firewall rules: > > - `https://api.github.com/repos/actualbudget/actual/issues` > - Triggering command: `/usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/actual/actual/node_modules/ts-node/dist/bin.js ./bin/release-note-generator.ts` (http block) > > If you need me to access, download, or install something from one of these locations, you can either: > > - Configure [Actions setup steps](https://gh.io/copilot/actions-setup-steps) to set up my environment, which run before the firewall is enabled > - Add the appropriate URLs or hosts to the custom allowlist in this repository's [Copilot coding agent settings](https://github.com/actualbudget/actual/settings/copilot/coding_agent) (admins only) > > </details> <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>[Bug]: yarn generate:release-notes generates files which trigger lint warnings</issue_title> > <issue_description>### Verified issue does not already exist? > > - [x] I have searched and found no existing issue > > ### What happened? > > When you run `yarn generate:release-notes`, it asks a series of questions and then creates a file based on your answers. However, if you use that file as-is, it will create a lint error when running `yarn lint` due to a missing newline at the end of the file > > ### How can we reproduce the issue? > > run `yarn generate:release-notes` and then `yarn lint` > > ### Where are you hosting Actual? > > Locally via Yarn > > ### What browsers are you seeing the problem on? > > Other > > ### Operating System > > Linux</issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes actualbudget/actual#6640 <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.
GiteaMirror added the pull-request label 2026-02-28 21:31:02 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6645