altinn-studio
altinn-studio copied to clipboard
Building App in Studio does not use last commit to master if gitea is updated directly
Describe the bug
Build app in Altinn Studio does not use last commit to master (as stated). It uses the last commit available during page load.
If a developer pushes code to gitea or updates gitea directly, the commit will not be built.
To build the last commit you have to press pull or push on another page in Altinn Studio for the commit to update.
To Reproduce
Steps to reproduce the behavior:
- Create an app in Studio
- Go to "deploy page"
- Change something in Gitea.
- Click build in Studio
- The commit that is built is not the last commit.
Expected behavior
- During click button to build the last commit needs to be fetched from gitea.
- Consider having an interval check to get the last commit from gitea.