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

[infra] Create reusable workflows #178

Merged

Conversation

michelengelen
Copy link
Member

@michelengelen michelengelen commented Aug 23, 2024

This introduces reusable workflows to the org.
First one is the closing message as it is the first we can use in the core repo.

This PR should also fix sending this message on issues from the maintainers as well.

See https://github.com/mui/mui-private/issues/360

@michelengelen michelengelen added core Infrastructure work going on behind the scenes scope: infra Org infrastructure work going on behind the scenes labels Aug 23, 2024
@michelengelen michelengelen self-assigned this Aug 23, 2024
@michelengelen
Copy link
Member Author

@oliviertassinari it seems this line broke CircleCI:

name: '`pnpm dedupe` was run?'

@Janpot
Copy link
Member

Janpot commented Aug 23, 2024

@michelengelen I ran pnpm store prune && pnpm dedupe and it passes now.

@oliviertassinari oliviertassinari force-pushed the automation/create-reusable-workflows branch from 241d27e to be6ef9a Compare August 24, 2024 21:30
@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 24, 2024

I have linked the issue/task/shaping page/conversation at the origin of this PR.

it seems this line broke CircleCI:

Yeah, It's like I was 🍺 when I pushed that, my diff is stupid 😆. I just noticed because I wanted to fix a Toolpad KPI page, and thought, oh wait, Michal opened a PR, his CI must be broken. I have fixed HEAD and I have rebased this PR on HEAD.

@michelengelen michelengelen merged commit 04275a9 into mui:master Aug 26, 2024
5 checks passed
@michelengelen michelengelen deleted the automation/create-reusable-workflows branch August 26, 2024 07:55
issue_number: issueNumber,
});

const repositoryMap = {
Copy link
Member

@oliviertassinari oliviertassinari Aug 26, 2024

Choose a reason for hiding this comment

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

This mapping between GitHub repository slugs and the product id / product category id looks wrong, issu created #180. Suggestions below to match

Copy link
Member Author

Choose a reason for hiding this comment

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

Most of the suggestions given make sense, but the linked code does not contain all of the possible combinations in terms of the repo -> product relation.

Should we define something (like an actual mapping) or keep it as is (with the adjustments from below) for now?

Copy link
Member

Choose a reason for hiding this comment

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

all of the possible combinations in terms of the repo -> product relation.

Do you have an example of a missing combination? I'm not completely following your point.

Copy link
Member Author

Choose a reason for hiding this comment

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

Its the more fine-grained mapping of x-data-grid[-pro/-premium], x-charts, etc since we only have one repository and cannot determine which product is affected based on the limited information we have

Copy link
Member

@oliviertassinari oliviertassinari Aug 26, 2024

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Suggestion for the future, we prefer to author scripts in ESM https://github.com/actions/github-script?tab=readme-ov-file#use-esm-import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes scope: infra Org infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants