GithubHelp home page GithubHelp logo

Selective run about branch-cleanup-action HOT 5 CLOSED

jessfraz avatar jessfraz commented on April 28, 2024
Selective run

from branch-cleanup-action.

Comments (5)

sburns avatar sburns commented on April 28, 2024 2

I've been messing around w/ this too. I tried to add a filter action like

action "pull request is closed" {
  uses = "actions/bin/filter@master"
  args = "action closed"
}

action "delete closed PR" {
  uses = "jessfrazz/merge-branch-cleanup@master"
  needs = "pull request is closed"
  secrets = ["GITHUB_TOKEN"]
}

but in practice, this doesn't work because the "pull request is closed" action will return neutral status, thereby canceling the "delete closed PR" action. This cancelation is marked as a negative/red check on the PR, and if you have controls that only allow fully-passing PRs to be merged, this PR now can't be merged. This check is done within the script in this repo here.

From what I know about Actions right now, it seems like this needs to run on every pull-request event.

from branch-cleanup-action.

jessfraz avatar jessfraz commented on April 28, 2024 1

They are working on changes with exit codes to make it cleaner when you use something like a filter so itโ€™s not red.

But all support for actions and requests like that need to go to support@ not this repo sorry.

from branch-cleanup-action.

jessfraz avatar jessfraz commented on April 28, 2024 1

from branch-cleanup-action.

distantcam avatar distantcam commented on April 28, 2024

I've had similar thoughts about how to define different "filters" to trigger the branch cleanup.

I ended up copying some of this repo into my own here - https://github.com/distantcam/github-actions

I took this action, removed the conditionals, and then used filter actions to replace those conditionals. The result works, but it looks ugly and confusing in the UI right now.

from branch-cleanup-action.

sburns avatar sburns commented on April 28, 2024

Can you internally bump some of those emails? Feels like sending to /dev/null right now :)

from branch-cleanup-action.

Related Issues (12)

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.