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

feat: add draft prs to create-pull-request #303

Merged
merged 1 commit into from
Feb 20, 2024
Merged

feat: add draft prs to create-pull-request #303

merged 1 commit into from
Feb 20, 2024

Conversation

verbanicm
Copy link
Contributor

This change add the ability to create pull requests in draft status.

This change also modifies the existing logic to enable auto merge.

Since both draft and auto-merge are binary states, this change allows the user to toggle the status when creating/updating the pull request and the actions will safely modify.

I ran into several issues with using github-script and the API, namely we have to do a bunch of additional validation against existing states, where the gh cli already does this. I opted for the CLI to not re-invent the wheel and allow for somewhat "cleaner" code.

@verbanicm verbanicm requested a review from sethvargo February 19, 2024 20:37
@verbanicm verbanicm requested a review from a team as a code owner February 19, 2024 20:37
@verbanicm verbanicm requested a review from drevell February 19, 2024 20:37
Copy link
Contributor

@sethvargo sethvargo left a comment

Choose a reason for hiding this comment

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

Yea, using the CLI is nicer

@verbanicm verbanicm merged commit 4be2e7c into main Feb 20, 2024
2 checks passed
@verbanicm verbanicm deleted the verbanicm/fix branch February 20, 2024 02:47
@token-minter-prod token-minter-prod bot mentioned this pull request Mar 5, 2024
token-minter-prod bot added a commit that referenced this pull request Mar 5, 2024
## What's Changed
* feat: add draft prs to create-pull-request by @verbanicm in
#303
* Add cleanup scripts by @sethvargo in
#289
* Fix race with using DefaultLogger by @sethvargo in
#304
* fix: release by @verbanicm in #305
* Switch to nicer quoting for YAML conditions by @sethvargo in
#306
* Remove some double-quoting in workflows by @sethvargo in
#307
* Disable caching on golangci by @sethvargo in
#308
* Update to new release process by @sethvargo in
#309
* Update deps and Go version by @sethvargo in
#311


**Full Changelog**:
v1.0.3...v1.0.4

Co-authored-by: token-minter-prod[bot] <125072751+token-minter-prod[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants