-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle remote repo default branch #303
Conversation
@sgotti I didn't implement tests because gitea 1.8.3 hasn't api to change default repo branch. I can add them when we change gitea (and sdk) version |
@alessandro-sorint Thanks for the PR. I don't think it's a good idea to call the remote source api everytime an agola project api is called. We should store the default branch in the configstore and add an api to let the user refresh the remote project info (that could be used also for other needs) and, as a future improvement, automatically update it when a call to the remote source api returns an updated default branch. |
4975e81
to
636b042
Compare
We definetly needs tests before merging. So you should update the gitea version and manually implement the gitea api request if not provided by the sdk (we are already doing something similar for some gitea apis) or find a way to update the gitea sdk (see #247 that's blocked). |
I update gitea in this PR? It's ok the gitea v1.15.11? |
636b042
to
688cc36
Compare
Please open a new PR so we could check that there're no regressions in the tests. |
c0d8213
to
3962b59
Compare
@sgotti can you do the review please? |
ce8f384
to
8199d1d
Compare
774afbd
to
6a6711b
Compare
Hi @sgotti can you review please? |
093c5c3
to
f3e0bf6
Compare
f3e0bf6
to
bd71c85
Compare
1916e94
to
eb31971
Compare
2bb922f
to
f4383b4
Compare
f4383b4
to
6a26222
Compare
6a26222
to
71c4e1a
Compare
daac0b1
to
5fa27c8
Compare
Hi @sgotti can you review please? |
b660f14
to
acaa0c7
Compare
acaa0c7
to
ad794c3
Compare
@sgotti can you restart the run please? |
ad794c3
to
9135fcc
Compare
gateway: provide remote repo default branch project response. An empty default branch means we don't yet know the remote repo default branch value. gateway: add api to refresh a project remote repo data. configstore: add defaultBranch to the project type.
9135fcc
to
e0fad62
Compare
fix #275
Added action GetRepoInfo to get repo info.
Updated gateway api to return default branch into type ProjectResponse