Closed arboleya closed 1 day ago
Blocked by:
@arboleya the GOAT 🙏 thank you
In relation to the implementation, we'd have to do the following two:
@arboleya the breaking change description on the PR would contain everything necessary to complete this issue, so how is this issue being blocked by #2523 which is concerned with issue creation?
I will create a default/standard template for the PRs with a pre-defined breaking change section.
@nedsalkI Please check the example I suggested here:
Can you please address that along with this issue?
Here's an example of how this PR could look with Migration Notes.
onSuccess
events for the Fuels CLI, by @Dhaiwat10commander
to12.1.0
, by @YaTut1901fuel-toolchain.toml
to create fuels
template, by @danielbateisReadOnly
function, by @petertonysmith94create fuels
, by @petertonysmith94create-fuels
CLI, by @Dhaiwat10UNKNOWN
error code, by @maschadonSuccess
events for the Fuels CLI, by @Dhaiwat10The createConfig
method now has individual hooks for all fuels
CLI events types.
// Before
import { createConfig } from 'fuels';
createConfig({
onSuccess: (event: CommandEvent, config: FuelsConfig) => {
const { data, type } = event;
console.log('fuels:onSuccess', { data, type });
}
});
// After
import { createConfig, DeployedContract } from 'fuels';
createConfig({
onBuild: (config: FuelsConfig) => {
console.log('fuels:onBuild', { config });
},
onDeploy: (config: FuelsConfig, data: DeployedContract[]) => {
console.log('fuels:onDeploy', { config, data });
},
onDev: (config: FuelsConfig) => {
console.log('fuels:onDev', { config });
},
onNode: (config: FuelsConfig) => {
console.log('fuels:onNode', { config });
},
});
Altered the signature for onFailure
hook in createConfig
.
// Before
import { createConfig } from 'fuels';
createConfig({
onFailure: (error: Error, config: FuelsConfig) => {
console.log('fuels:onFailure', { error, config });
},
});
// After
import { createConfig } from 'fuels';
createConfig({
onFailure: (config: FuelsConfig, error: Error) => {
console.log('fuels:onFailure', { config, error });
},
});
commander
to12.1.0
, by @YaTut1901The shorthand flag (-p
) for passing through a path to various fuels
CLI commands has been deprecated.
Migrate to using the --path
flag instead.
# before
pnpm fuels -p ./my/path
# before
pnpm fuels --path ./my/path
@arboleya if you can also include a small section which describes the changes from a high level, i.e. a description of the update: In this update we did X, Y, Z to improve A, B and C.
A breif description we can pull in for the update in plain english will be helpful. It can be short, but just describe what the team was up to when they updated for the version.
The other Chores and Migration Notes section I see listed in the lower comments here seems perfect for what we need.
@SilentCicero Do you mean a high-level description summarizing what is relevant about the PR?
Does it need to be fluid text, or can it still be bullet points or something similar?
These Release Notes are an automated amalgamation of individual PRs, so this info must still come from the PRs. There could be an optional section that people can fill out on each PR, provided their PR is relevant enough. Then, we can pull and combine those at the top before the digest begins — would that work?
If a given release doesn't have relevant notes, we could have a default one:
We currently use a digest to signal all PRs included new releases:
At the top, we have a section grouping all breaking changes with links to related PRs. Then, inside each PR, one can find detailed instructions about the breaking change it introduced.
The idea is to improve our CHANGELOG automation so that instructions from every PR are always included in the release notes, allowing users to find everything they need in a single place.
Template here.