Skip to content

additional cml pr options - #1063

Merged
0x2b3bfa0 merged 22 commits into
masterfrom
cml-pr-opts
Jun 24, 2022
Merged

0x2b3bfa0 merged 22 commits into
masterfrom
cml-pr-opts

Conversation

@dacbd

@dacbd dacbd commented Jun 15, 2022 •

Copy link
Copy Markdown
Contributor

Closes: #1017
Adds:

  • --branch allow a use to set a custom branch name like exp-12345 or exp=${{ matrix.exp_id }}
  • --title PR title
  • --body (maybe --description is better ?) body contents
  • --message custom commit message

some examples:
cml pr --title test --body="test pr body" --message="my commit message" .
cml pr --skip-ci --branch exp-1234 --message="my commit message" .
cml pr --title="Fancy PR Body" --body report.md .

if --message is provided the [skip ci] notation is only added if --skip-ci is included. For example, cml pr --squash . would make a commit with [skip ci] present but cml pr --messsage="my yolo pr" --squash would not, including --skip-ci explicitly adds [skip ci] to the end of the provided message for this example resulting in a commit message of my yolo pr [skip ci]

@dacbd
dacbd temporarily deployed to internal June 15, 2022 21:59 Inactive
@dacbd dacbd self-assigned this Jun 15, 2022
@dacbd dacbd added the cml-pr Subcommand label Jun 15, 2022
@dacbd
dacbd temporarily deployed to internal June 15, 2022 22:02 Inactive
@dacbd
dacbd temporarily deployed to internal June 15, 2022 22:07 Inactive
@dacbd
dacbd marked this pull request as ready for review June 15, 2022 22:14
@dacbd
dacbd requested a review from a team June 15, 2022 22:14
Comment thread src/cml.js Resolved
Comment thread bin/cml/pr.js Resolved
Comment thread bin/cml/pr.js Resolved
Comment thread bin/cml/pr.js Resolved
Co-authored-by: Helio Machado <[email protected]>
@dacbd
dacbd temporarily deployed to internal June 16, 2022 01:11 Inactive
@dacbd
dacbd temporarily deployed to internal June 16, 2022 17:31 Inactive
Comment thread bin/cml/pr.js Resolved
Comment thread bin/cml/pr.js Resolved
Comment thread bin/cml/pr.js Resolved
Comment thread bin/cml/pr.js Resolved
Comment thread bin/cml/pr.js Resolved
Comment thread src/cml.js Resolved
Comment thread src/cml.js Resolved
@dacbd
dacbd temporarily deployed to internal June 16, 2022 17:52 Inactive
@dacbd
dacbd requested a review from casperdcl June 16, 2022 17:57
@dacbd
dacbd temporarily deployed to internal June 17, 2022 15:42 Inactive
@dacbd
dacbd requested a review from DavidGOrtega June 17, 2022 15:42
DavidGOrtega
DavidGOrtega previously approved these changes Jun 17, 2022

@DavidGOrtega DavidGOrtega left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nitpick:

I prefer to have the variable setup as close as possible

Comment thread src/cml.js Resolved
Comment thread src/cml.js Resolved
@dacbd
dacbd temporarily deployed to internal June 20, 2022 14:48 Inactive
@dacbd
dacbd requested a review from DavidGOrtega June 20, 2022 14:49
DavidGOrtega
DavidGOrtega previously approved these changes Jun 20, 2022

@DavidGOrtega DavidGOrtega left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀
Thanks a lot for the extra effort!! 🙏

@dacbd
dacbd requested a review from 0x2b3bfa0 June 20, 2022 17:17
0x2b3bfa0
0x2b3bfa0 previously approved these changes Jun 21, 2022
@dacbd
dacbd dismissed stale reviews from 0x2b3bfa0 and DavidGOrtega via aef2750 June 21, 2022 16:35
@dacbd
dacbd temporarily deployed to internal June 21, 2022 16:35 Inactive
@dacbd
dacbd requested a review from DavidGOrtega June 21, 2022 16:36
@DavidGOrtega

DavidGOrtega commented Jun 23, 2022 •

Copy link
Copy Markdown
Contributor

@casperdcl have been your issues addressed?

casperdcl
casperdcl previously approved these changes Jun 23, 2022
Comment thread bin/cml/pr.js Resolved
Comment thread bin/cml/pr.test.js Resolved
@casperdcl
casperdcl temporarily deployed to internal June 23, 2022 15:24 Inactive
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal June 24, 2022 10:17 Inactive
@0x2b3bfa0
0x2b3bfa0 enabled auto-merge (squash) June 24, 2022 10:17
@0x2b3bfa0
0x2b3bfa0 merged commit 77cfb2a into master Jun 24, 2022
@0x2b3bfa0
0x2b3bfa0 deleted the cml-pr-opts branch June 24, 2022 10:22
@dacbd dacbd mentioned this pull request Oct 17, 2022

This branch was previously deployed

1 inactive deployment
internal — d7f20693 Deployed Jun 24, 2022 by 0x2b3bfa0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cml-pr Subcommand

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add cml pr --title --body --message --branch

4 participants