Skip to content

Comments

Add team flag to fly command abort-build#7492

Merged
EstebanFS merged 3 commits intomasterfrom
issue/5215-abort-build
Sep 2, 2021
Merged

Add team flag to fly command abort-build#7492
EstebanFS merged 3 commits intomasterfrom
issue/5215-abort-build

Conversation

@EstebanFS
Copy link
Contributor

@EstebanFS EstebanFS commented Aug 31, 2021

Changes proposed by this PR

closes various items in #5215

  • Small refactor in order to centralize find team logic
  • Add team flag to abort-build command (with the new refactor)

Notes to reviewer

Added team flag to fly command abort-build

Now you could add the --team flag to specify the team this action will be applied

Release Note

  • Added team flag to fly command abort-build, you could use this following the next format
    fly -t dev abort-build --job some-pipeline/some-job -b 2 --team test

@EstebanFS EstebanFS requested a review from a team as a code owner August 31, 2021 20:23
@taylorsilva taylorsilva self-assigned this Sep 1, 2021
I used the small refactor I made to add the team flag to the abort_build command

Signed-off-by: Esteban Foronda <[email protected]>
Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed one command in your refactor, jobs:

Team string `long:"team" description:"Name of the team to which the pipeline belongs, if different from the target default"`

Nice refactor though! Should be wayyy easier to add the rest now :)

Signed-off-by: Esteban Foronda <[email protected]>
@EstebanFS EstebanFS force-pushed the issue/5215-abort-build branch from f0a5a50 to 803b90b Compare September 2, 2021 15:31
@EstebanFS
Copy link
Contributor Author

Hey @taylorsilva , I just solved your comments, thanks for reviewing it!

Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@EstebanFS EstebanFS merged commit 8adf8cf into master Sep 2, 2021
@EstebanFS EstebanFS deleted the issue/5215-abort-build branch September 2, 2021 16:24
@clarafu clarafu changed the title Small team logic refactor - Add team flag to abort-build command Add team flag to abort-build command Sep 7, 2021
@clarafu clarafu changed the title Add team flag to abort-build command Add team flag to fly command abort-build Sep 7, 2021
@clarafu clarafu added the release/undocumented This didn't warrant being documented or put in release notes. label Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement release/undocumented This didn't warrant being documented or put in release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants