auto
auto copied to clipboard
Feat add `afterRun` hook
What Changed
Add new afterRun
hook triggered after each command.
Why
Because beforeRun
exists ;-P
Todo:
- [x] Add tests
- [x] Add docs
Change Type
Indicate the type of change your pull request is:
- [ ]
documentation
- [ ]
patch
- [x]
minor
- [ ]
major
Just like https://github.com/intuit/auto/pull/2180 , I didn't understand why ci check pr-check
is failling with a 404.
I think this would mean that we have to update anywhere we use the afterShipIt hook since right now we assume we are shipping something. This would also be a breaking change too since it could break people using the hook
I think this would mean that we have to update anywhere we use the afterShipIt hook since right now we assume we are shipping something. This would also be a breaking change too since it could break people using the hook
This is not really a breaking change since the hook payload permit it and the purpose of this hook seems to be : Ran after the 'shipit' command has run
. So all plugins must handle the payload properly.
But of course if the intent of this hook was to be only called when a release is done 🤷 .
I see two options :
- Check all existing
afterShipIt
hooks to properly handlenewVersion === undefined
- Create a new hooks
afterRun
, that can be called after all commands (just likebeforeRun
). And changenewVersion
to only a string and updateafterShipIt
description to intent this.
I'll be glad to handle this. Please let me known what is your preference ?
@jBouyoud Route 2 sounds like a great option! I like how we would then have the beforeRun/afterRun combo.
@hipstersmoothie please find an implementation proposal for the route 2
@hipstersmoothie anything that I can do to help merge this PR ?
@hipstersmoothie I also rebase this PR ;-P
pr-check
, release
seems fails because : PR
env variable is empty ; probably related to this.
And github actions permissions are all in read
even the workflow file specify write
permissions 🤷
@hipstersmoothie Let me know if everything miss to merge this
:rocket: PR was released in v10.42.0
:rocket: