GithubHelp home page GithubHelp logo

cometkim / cleankeeper Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 4.0 16 KB

A GitHub Action to clean obsoleted greenkeeper branches

License: MIT License

Dockerfile 10.83% Shell 89.17%
github-action greenkeeper actions

cleankeeper's Introduction

Cleankeeper

A GitHub Action to clean obsoleted Greenkeeper's branches

  • Run on merge pull request event

  • It will automatically removes branches which have:

    • greenkeeper/ prefix
    • same package name with merged ref
    • smaller version(semver or numeric) than merged ref

Example

In your .github/main.workflow

workflow "My Workflow" {
  on = "pull_request"
  resolves = ["Cleankeeper"]
}

action "Cleankeeper" {
  uses = "cometkim/cleankeeper@master"
  secrets = ["GITHUB_TOKEN"]
  env = {
    PER_PAGE = "100"
  }
}

cleankeeper's People

Contributors

cometkim avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rheehot

cleankeeper's Issues

WIP note

greenkeeper/@types/node-11.11.4

greenkeeper/monorepo.babel7-20190319223723
greenkeeper/monorepo.gatsby-20190318095209

전체적인 걸 보면 Greenkeeper 가 생성하는 브랜치는 ^greenkeeper/(monorepo\.)?(?<name>.*)-(?<version>.*)$ 의 규칙을 가지고 있고 monorepo 여부는 딱히 신경 안써도 될 것 같음.

특정 name과 version을 가진 브랜치가 머지됐을 때, 같은 name을 가지고 더 낮은 version을 가진 브랜치들을 일괄 삭제해버리면 됨

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.