Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add team flag to fly command abort-build #7492

Merged
merged 3 commits into from
Sep 2, 2021
Merged

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 :)

fly/integration/abort_build_test.go Outdated Show resolved Hide resolved
fly/commands/internal/flaghelpers/team_flag.go Outdated Show resolved Hide resolved
Signed-off-by: Esteban Foronda <[email protected]>
@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.

None yet

3 participants