Creating webhooks via GitLab API - gitlab

Is there any way of creating webhooks in GitLab via API similiar to what we have in GitHub using GitHub API by Koshuke?

You can add, list, edit and delete webhooks.
POST /projects/:id/hooks
You can add a webhook with your project ID or with namespace/project_name
Take a look at this http://doc.gitlab.com/ce/api/projects.html#add-project-hook

There only seem to be an API (for listing/creating or deleting hooks) for:
system hooks, not webhooks.
System hooks were introduced in March 2013 for GitLab 5.0.
project hooks (documented here)

Related

How To Use Shopify CLI In GitLab CI/CD Integration

Good day everyone!
I'm very new to Shopify & GitLab platforms and I don't exactly know how to properly integrate the new Shopify CLI with the GitLab CI/CD pipeline.
My goal is when I push the changes from my local theme development to GitLab, the CI/CD pipeline runs and it'll automatically update the Shopify Theme online. Similar to Shopify GitHub integration.
From a number of days of searching, I've only been able to find a single solution to this:
https://medium.com/#gogl.alex/how-to-deploy-shopify-themes-automatically-1ac17ee1229c
and a community discussion about this:
https://community.shopify.com/c/technical-q-a/development-setup-with-gitlab/m-p/1243584
But the problem is this solution is still using the Shopify Theme Kit and not the new Shopify CLI.
I would like to ask if someone has already done this in the community and ask if they don't mind sharing the solution in this discussion.
Thank you for reading, any advice/s and/or solutions would be very helpful!

How to resore Github repo from archive using Octokit

I have archive from github migration API. How can I restore it in different repo using Nodejs and Octokit?
Apparently GitHub's REST API does not support 'un-archiving' repositories but, apparently it is possible to do it with GraphQL API as pointed in this post in GitHub Community.
Remember Octokit has a GraphQL API client for browsers and Node
About unarchiving it in a different repository I'm not sure if it would be possible. Maybe you could take a look into this Octoherd copy-repository utility (by #gr2m, the creator of Octokit)

SAP Cloud SDK CI/CD Pipeline: Usage with non S\4 Services

I am using SAP Cloud SDK (Java flavour) to create an extension application of SuccessFactors.
I sadly discovered that the Jenkins pipeline does not allow me to use any other service than the ones listed here: SCN Blog (scroll to the Appendix).
This does not make so much sense to me, as now the SDK can be used - and it is sponsored to be used by SAP - also with SaaS in its ecosystem, SuccessFactors being one of them.
Any hint? Can this check be somehow "bypassed"?
Thanks,
Roberto.
Please note that the blog post is quite old, have you verified your assumption that it does not work with SuccessFactors API?
Nonetheless, we recently introduced a configuration option which allows you to disable certain checks, cf https://github.com/SAP/cloud-s4-sdk-pipeline/blob/master/configuration.md#s4sdkqualitychecks
checkServices is what you would want to disable in your scenario.
As stated by Florian in the comment and following the Project Piper documentation, parameters "checkServices" and "customODataServices" can be used to customize the behavior of the pipeline when running upon a non-Business Hub API.
"checkServices: false" will completely deactivated the check, whereas "customODataServices: [ yourApiName ]" will skip the check just for the specified services.

Compiled Node.Js app links to github, possible to redirect to different repository?

I have an app that I use that uses a repository on github. The app is compiled and I cannot edit it, is it possible to redirect the github request to another repository? Like to intercept the request? I am interested in making some changes.
Thanks
Hum... if you can't access to the source code it seems undoable.
But maybe a weebhook on your repository can do the job :
https://developer.github.com/webhooks/

How can I update the issue body of a github issue via the api?

I can't seem to find documentation regarding this.
I want to update the body or title of an issue via the API.
Any help would be greatly appreciated.
I actually found the documented solution. It is using the PATCH method.
See here: https://developer.github.com/v3/issues/#edit-an-issue
PATCH /repos/:owner/:repo/issues/:number
Request Parameters: https://developer.github.com/v3/issues/#parameters-3
You also have an alternative (which still uses the GitHub API): GitHub CLI gh 1.6 (Feb. 2021)
GitHub CLI now supports editing issues and pull requests, and pull request auto-merge
GitHub CLI 1.6 now includes support for editing issues and pull requests, allowing you to:
Edit the title or body
Add metadata like labels, assignees, reviewers, projects, and milestones
This latest release also supports enabling auto-merge for pull requests.

Resources