GithubHelp home page GithubHelp logo

isabella232 / webhooks-custom-retention Goto Github PK

View Code? Open in Web Editor NEW

This project forked from myget/webhooks-custom-retention

0.0 0.0 0.0 172 KB

Web project that can perform a custom retention policy for MyGet feeds. Uses webhooks to trigger whenever a new package is added to a feed.

License: Apache License 2.0

ASP 1.46% C# 98.54%

webhooks-custom-retention's Introduction

Custom Retention

Web project that can perform a custom retention policy for MyGet feeds. Uses webhooks to trigger whenever a new package is added to a feed.

Deploy and Configure

The idea of this application is to create a custom retention policy. Therefore, it is recommended to customize the logic in RetentionController. Next, deploy to a web server, for example Microsoft Azure Websites.

Two settings are available as utilities, and may (or may not) be used by your custom code:

  • Signature:NuGetFeedApiKey - API key for performing operations on the feed that triggers the web hook

Setup a MyGet Webhook

For the MyGet feed you wish to run this application's logic on, configure a new HTTP Post webhook. The following options must be configured:

  • URL to POST JSON data to - URL to the deployed application's API endpoint, for example http://customretention.azurewebsites.net/api/retention (do not forget the /api/retention)
  • Content type - set to application/json
  • Events that trigger this web hook - make sure that only Package Added is selected

MyGet webhook configuration

From now on, all packages that are added to your feed will trigger the logic implemented in this application.

Triggering Custom Logic on Other Events

Refer the MyGet documentation on webhooks to learn about the different events that can trigger a web hook application which performs custom logic.

webhooks-custom-retention's People

Contributors

maartenba avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.