Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Add command intent to run stale branch cleanup on demand #68

Closed
ipcrm opened this issue Oct 7, 2020 · 3 comments
Closed

Add command intent to run stale branch cleanup on demand #68

ipcrm opened this issue Oct 7, 2020 · 3 comments
Assignees
Labels
changelog:added Add this issue or pull request to added changelog section enhancement New feature or request

Comments

@ipcrm
Copy link

ipcrm commented Oct 7, 2020

In addition to the ability to run it on a schedule.

@cdupuis
Copy link
Member

cdupuis commented Oct 7, 2020

Can you provide some more details on what you want here? Currently the skill sends a message into chat to list all stale branches. Is that what you want to trigger across all selected repositories? Or do you actually want to delete the branches? /cc @ipcrm

@ipcrm
Copy link
Author

ipcrm commented Oct 7, 2020

The goal would be to produce the exact same dialog we see today when the command is invoked, but only for specific repos

Scenarios:

  • Invoke in DM with Atomist: you would need to provide targets.repo targets.owner (or the equivalent) so the skill knows which repo to go and run the stale branch cleanup against. Again, providing the same dialog you see today when it is produced on a schedule (but sent back to the originating DM)
  • Invoke in channel with linked repos, provide the same dialog you see on a scheduled run but only for the repo(s) linked to this channel in the channel that the command was invoked from

@cdupuis cdupuis added changelog:added Add this issue or pull request to added changelog section enhancement New feature or request labels Oct 7, 2020
@cdupuis cdupuis self-assigned this Oct 7, 2020
cdupuis added a commit that referenced this issue Oct 9, 2020
@cdupuis
Copy link
Member

cdupuis commented Oct 9, 2020

This is now in main.

Command is either @atomist list stale branches --repo='atomist/sdm' or @atomist list stale branches --repos='atomist\/.*'

@cdupuis cdupuis closed this as completed Oct 9, 2020
atomist bot pushed a commit that referenced this issue Oct 9, 2020
[atomist:generated]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
changelog:added Add this issue or pull request to added changelog section enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants