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 missing types workflow #3668

Merged
merged 2 commits into from Jan 31, 2022
Merged

add missing types workflow #3668

merged 2 commits into from Jan 31, 2022

Conversation

KiraPC
Copy link
Contributor

@KiraPC KiraPC commented Jan 31, 2022

Checklist

As per the issue #3664 I've introduced a new workflows that automatically create an issue for missing typescript for specific labeled PR.

@Eomm I did not got your last comment, about the title, please, review the workflow and let me know if something is not like you expect.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina requested a review from Eomm January 31, 2022 10:01

on:
pull_request:
types: [labeled]
Copy link
Member

Choose a reason for hiding this comment

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

I think that it should be triggered only when a PR is merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, make sense :)

I just followed the issue description. @Eomm do you agree on this?

Copy link
Member

Choose a reason for hiding this comment

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

Yes it does

  • we add the lebel
  • we merge the PR
  • the issue is created

we will avoid to open an issue for those PRs that are not merged

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PR updated to handle this.

if: contains(github.event.pull_request.labels.*.name, 'missing-types')
steps:
- name: Create an issue
uses: octokit/request-action@v2.x
Copy link
Member

Choose a reason for hiding this comment

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

Can this just be a major version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, didn't got your question. Do you mean if it can use another version of the action?

Copy link
Member

@Fdawgs Fdawgs Jan 31, 2022

Choose a reason for hiding this comment

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

Apologies, poor question there! Can it be a major tag i.e. octokit/request-action@v2 as opposed to using both a major and minor tag (v2.x)?

Copy link
Contributor Author

@KiraPC KiraPC Jan 31, 2022

Choose a reason for hiding this comment

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

Gotcha.

I'll check and in case replace it in next commit.

EDIT: No, It can't be used with just the major.

Copy link
Member

@RafaelGSS RafaelGSS left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Member

@Eomm Eomm left a comment

Choose a reason for hiding this comment

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

Great! I will try it soon 👍🏼

@Eomm Eomm merged commit 17a4875 into fastify:main Jan 31, 2022
@Fdawgs Fdawgs mentioned this pull request Feb 22, 2022
2 tasks
@github-actions
Copy link

github-actions bot commented Feb 1, 2023

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants