Open AlbertDeFusco opened 4 years ago
Here is the procedure
ae5 login
ae5 project clone <project> <clone-directory>
cd <clone-directroy>
ae5 git install-prepush
git add <files>
git commit
git tag <tag>
(optional)git push
@AlbertDeFusco is there a specific reason why ae5 project clone
should not automatically call ae5 git install-prepush
?
nope, but it will need to be run again when the token expires. I'll update the PR
How will the user experience token expiration? I wonder if there's a different hook we can offer that at least gives the user a heads-up.
Looking at your code it seems to me that install-prepush is independent of the token, and it's unclear why it would ever need to be run again. Hence it could be merged into clone and left there. But then we'd need, say, a refresh-token
command or something. Is my understanding correct?
Yes, that would be better. git-push would then ask for the ae5 password on each call. We could store the offline token, which has a much longer (or infinite) expiration and make the exchange/refresh during git-push and it wouldn't ask for the password
Curious about the offline token. I'm wondering if we can generate those, either with ae5-tools or with some other process, for use in (say) CI/CD.
Curious about the offline token. I'm wondering if we can generate those, either with ae5-tools or with some other process, for use in (say) CI/CD.
exactly! I've made some progress on this and can report soon
Once completed this will allow a user to run
[x]
ae5 project clone
(clone the project locally)[x]
ae5 git install-prepush
(configure pre-push hook to automate tag inspection and metadata posting)[x]
ae5 post revision-metadata
(intended to be called by the pre-push hook above