Skip to content

ProductivityTools-Services/ProductivityTools.Webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

List all the webhooks for the repository with cli

gh api repos/ProductivityTools-Transfers/ProductivityTools.Transfers.Api/hooks 

Add a new webhook

echo '{"name":"web","active":true,"events":["push","pull_request","release"],"config":{"url":"http://xjenkinswebhook.productivitytytools.top","content_type":"form","insecure_ssl":"0"}}' | gh api repos/ProductivityTools-Transfers/ProductivityTools.Transfers.Api/hooks --input - -X POST

documentation stackoverflow

Import-Module .\Productivitytools.WebHooks.psm1 -Force

Get-WebhooksUrls ProductivityTools-Transfers/ProductivityTools.Transfers.Api
Get-WebhooksUrls ProductivityTools-Salaries/ProductivityTools.Salaries.Api
Get-AllWebhooksDefinedInConfigurationFile
Set-WebhooksAsInConfigurationFile

Jenkins

To run jenkins job couple steps are required

  • download and install gh cli
  • authorize to gh cli
  • get the github cli key gh auth token
  • paste it to the master configuration

Jenkins currently is not working due to 400 error during sending json.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published