Skip to content

Conversation

@mikejolley
Copy link
Member

@mikejolley mikejolley commented Jun 9, 2021

Adds a new action to assign the next milestone to an approved PR. To test, approve this PR :)

This is for woocommerce/woocommerce-blocks#4223

Copy link
Member Author

@mikejolley mikejolley left a comment

Choose a reason for hiding this comment

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

Review comment

Copy link
Member Author

@mikejolley mikejolley left a comment

Choose a reason for hiding this comment

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

Comment

Copy link
Member Author

@mikejolley mikejolley left a comment

Choose a reason for hiding this comment

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

Test

Copy link
Member Author

@mikejolley mikejolley left a comment

Choose a reason for hiding this comment

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

comment-this should add milestone

Copy link
Member Author

@mikejolley mikejolley left a comment

Choose a reason for hiding this comment

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

comment

Copy link
Member Author

@mikejolley mikejolley left a comment

Choose a reason for hiding this comment

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

test

Copy link
Member Author

@mikejolley mikejolley left a comment

Choose a reason for hiding this comment

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

-.-

Copy link
Member Author

@mikejolley mikejolley left a comment

Choose a reason for hiding this comment

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

Test

@github-actions github-actions bot added this to the 1.3.0 milestone Jun 9, 2021
@mikejolley mikejolley removed this from the 1.3.0 milestone Jun 9, 2021
@mikejolley mikejolley changed the title Testing assign milestone workflow Add Assign Milestone Workflow Jun 9, 2021
@nerrad nerrad self-requested a review June 9, 2021 13:50
@mikejolley mikejolley self-assigned this Jun 9, 2021
@mikejolley mikejolley added the type: enhancement New feature or request label Jun 9, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2021

Code coverage

Filename Statements Branches Functions Lines
lib/automations/todos/utils/get-todos.js 100% 100% 100% 100%
lib/automations/todos/utils/get-diff.js 100% 100% 100% 100%
lib/automations/todos/utils/parse-to-do.js 100% 97.67% 100% 100%
lib/automations/todos/utils/get-details.js 100% 90.91% 100% 100%
lib/debug.js 66.67% 50% 100% 66.67%
lib/automations/todos/utils/check-for-duplicate-issue.js 100% 100% 100% 100%
lib/automations/todos/index.js 100% 100% 100% 100%
lib/automations/todos/runner.js 88.89% 66.67% 100% 88.89%
lib/automations/todos/pull-request-handler.js 90.48% 83.33% 100% 90.48%
lib/automations/todos/templates/index.js 100% 100% 100% 100%
lib/automations/todos/templates/comment.js 100% 100% 100% 100%
lib/automations/todos/templates/issue.js 100% 100% 100% 100%
lib/automations/todos/templates/issue-from-merge.js 100% 100% 100% 100%
lib/automations/todos/templates/title-change.js 100% 100% 100% 100%
lib/automations/todos/templates/reopen-closed.js 100% 100% 100% 100%
lib/utils/index.js 100% 100% 100% 100%
lib/utils/milestones.js 85.19% 60% 100% 85.19%
lib/utils/helpers.js 85.71% 66.67% 100% 83.33%
lib/automations/todos/pull-request-merge-handler.js 91.3% 87.5% 100% 91.3%
lib/automations/todos/utils/reopen-closed.js 100% 100% 100% 100%
lib/automations/todos/push-handler.js 92% 90% 100% 92%
lib/automations/todos/issue-rename-handler.js 100% 100% 100% 100%
lib/automations/release/config/validate-config.js 92.59% 95% 100% 92.59%
lib/automations/release/index.js 100% 100% 100% 100%
lib/automations/release/runner.js 87.5% 50% 100% 87.5%
lib/automations/release/branch-create-handler.js 89.66% 80% 66.67% 91.23%
lib/automations/release/templates/index.js 83.33% 40% 75% 83.33%
lib/automations/release/utils/index.js 100% 100% 100% 100%
lib/automations/release/utils/get-release-version.js 90.91% 87.5% 100% 90.91%
lib/automations/release/utils/is-patch-release.js 100% 100% 100% 100%
lib/automations/release/utils/get-release-branch.js 62.5% 55.56% 100% 62.5%
lib/automations/release/utils/duplicate-pr-checker.js 100% 100% 100% 100%
lib/automations/release/utils/has-milestone.js 100% 100% 100% 100%
lib/utils/changelog/index.js 100% 100% 100% 100%
lib/utils/changelog/common/changelog.js 83.96% 56.1% 86.49% 83%
lib/automations/release/config/index.js 75% 0% 100% 75%
lib/automations/assign-milestone/index.js 100% 100% 100% 100%
lib/automations/assign-milestone/runner.js 86.67% 50% 100% 86.67%
lib/automations/assign-milestone/pull-request-review-handler.js 90% 80% 100% 90%
lib/typedefs.js 0% 100% 100% 0%
lib/index.js 0% 0% 0% 0%
lib/utils/version.js 0% 0% 0% 0%
lib/if-not-fork.js 0% 0% 0% 0%
lib/automations.js 0% 100% 100% 0%

Copy link
Collaborator

@nerrad nerrad left a comment

Choose a reason for hiding this comment

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

Looks good to me, nothing really leapt out to me in the review other than the thought about what tag we might want to release this with. That can be handled on followup though, so let's see what approving this does :)

pull-request-automation:
runs-on: ubuntu-latest
steps:
- uses: woocommerce/automations@v1
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should release a @v2 as a result of implementing the new automation (that way if there are unintended issues with existing automations folks can rollback)?

This can be done in a followup if we end up doing that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup I'm fine with that. This shouldn't affect existing workflows because you'd need to call assign-milestone by name in your workflow file?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh true, I guess there's not any changes to existing tasks (or shared code across tasks) so it's safe to release under the existing version. We could probably reserve version bumps for when there's potentially task breaking changes.

Are you okay with doing a release or want me to take care of it? If you take care of it, this repo uses the release PR automation (similar to process we follow for blocks repo) except the checklist is much smaller. It's currently mostly manual as it's mostly just creating the correct tags etc. The release PR checklist should have all the steps needed.

@github-actions github-actions bot added this to the 1.3.0 milestone Jun 9, 2021
@nerrad
Copy link
Collaborator

nerrad commented Jun 9, 2021

Looks like it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants