Gerrit webhooks configuration - webhooks

I am trying to configure webhooks in Gerrit from the admin side. Still not able to find a perfect solution. PFB referred doc:
How to Configure Gerrit Webhooks for gerrit events
Is it like once we configure from the backend, we will get an option to enable in the individual repo?
Can anyone help with this?

I think you should ENABLE webhooks in Gerrit and no need to do that again in Repo.
Config the hook path in gerrit.config and put your scripts with right names.
see details from https://stackoverflow.com/a/68465416/5121698

Related

Base URL for GitLab self-managed API

I am doing a project in which I need to get responses from Gitlab self-managed.
For Gitlab SaaS it's very easy to find and use the baseurl, however I am facing some difficulties understanding what is my base url in the self-managed option.
Couldn't find an answer in Gitlab API docs - https://docs.gitlab.com/ee/api/
I tried querying both the address of the self-managed server and the SaaS base url both unsuccessfully.
Any suggestions?
Thanks!
As described in how to use the API, the API is located at the api/v4 path.
For example, to use the projects API on gitlab.com, you can use: https://gitlab.com/api/v4/projects

Azure Repo support in Azure API Management, or custom repos

Is it possible to configure Azure Repos or custom repos? This provides more functionalities including branching policy, pull request and code review.
Currently, Git is enabled by default, pointing to Azure centralised database.
https://learn.microsoft.com/en-us/azure/api-management/api-management-configuration-repository-git
In short:
No, this is not possible.
The longer answer:
No, I don't think this is possible.
Although there's no documentation that states it is not possible, I can also not find any documentation it is possible. And the lack of UI, REST APIs or documentation on how to specify a custom Git repo leads me to believe this is currently not possible.
The SCM endpoint is one of the managed service components hence it is out of your control.

Azure Repo Git Integration With Atlassian Jira

At work we are using Azure repositories as version control and Jira for our project management needs and issue management. We wanted to integrate both of these platform, so I sucsseffully installed Azure Pipeline For Jira and tested it out with a demo repo on Github with Github for Jira and it worked, it integrated my git actions on issue pannels. But somehow it does not support the Azure repos (at least there is no free version).
Let me know if any one has a work around for this. (Obviously not paid)
My main Question is, now I am trying to use Azure webhooks to receive information regarding my git activity on Jira issue pannel. In order to receive this information I am trying to create a web trigger URL in Jira's Forge App but couldn't really make it work. Maybe the URL generated by Jira is too big or something it gives 424 error when GET request is sent to the URL. Can anyone help in this regard?

How to deploy chatbot (NodeJS) In Azure without Bitbucket connection

I want to display a chatbot on Microsoft Azure. I've looked at the different alternatives and I can't find a way to do what I want. It's the first time I've ever used Azure and it's probably simple.
The code for this bot is in an organization's Bitbucket repository. I mean, I can't use the continuous deployment that Azure offers because I can't access the organization's Bitbucket. Is there an API I can call or a method for displaying my code without Azure needing to connect to my repository? Well, publishing the bot in a Bitbucket on the Internet (outside the organization) is restricted.
The bot is in NodeJS and I have seen the npm run azure-publish command which may be the way.
Thank you very much for your time.
PS1: Ideally, we should push, not Azure pull.
Finally I have solved my problem by using the command:
npm run azure-publish
Which internally makes a node of a publish.js file in which I specify the necessary parameters for the connection, the path to the ZIP, etc.
What I can't do is a callback to let me know if the deployment was successful, but that's already a straightforward question and I'm with it.
I hope I can be of help to other people. Any additional questions, do not hesitate to ask.

Gitlab: Working with multiple Users

I have created a gitlab repo and also have set up SSH keys. I can push my changes to the repo. When another developer wants to contribute to the same repo (project), how can I set up Gitlab so that he can also work with the repository. I would be glad if someone can give me instructions as to how to do that as steps.
He is going to need to setup his own SSH key or you will need to give him one of the private keys if that's the route you want to go...
Otherwise, you could just invite him to edit the repo (assuming he has an account). To navigate to those settings go to your desired project repository in your web browser, and find the "Settings" menu on the left side. Inside there, you will see "Members". There you can enter the developer's credentials to allow him access to the repo.

Resources