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

Allow CircleCI workflow job options to be overridden #719

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

ivomurrell
Copy link
Contributor

Description

Previously jobs in CircleCI workflows (i.e., where you define which jobs a workflow runs and which custom parameters to use) could not be overridden by other plugins as they were a deeper part of the hook options that the merging logic didn't reason about.

This allows us to move the Cloudsmith changes in #710 into a separate plugin.

Checklist:

  • My branch has been rebased onto the latest commit on main (don't merge main into your branch)
  • My commit messages are conventional commits, for example: feat(circleci): add support for nightly workflows, fix: set Heroku app name for staging apps too

This is so that one plugin can override the options of a parent plugin.
In the future it might be worth validating that the final merged hook
options include all the required options but that will be slightly more
complicated and I don't think it's necessary right now.
@ivomurrell ivomurrell requested a review from a team as a code owner November 27, 2024 14:49
lib/schemas/src/hooks/circleci.ts Show resolved Hide resolved
plugins/circleci/src/circleci-config.ts Outdated Show resolved Hide resolved
@ivomurrell ivomurrell force-pushed the circleci-workflow-jobs branch from fac03cd to e33e579 Compare November 27, 2024 16:18
@ivomurrell ivomurrell enabled auto-merge November 27, 2024 16:18
@ivomurrell ivomurrell merged commit 031013f into main Nov 27, 2024
14 checks passed
@ivomurrell ivomurrell deleted the circleci-workflow-jobs branch November 27, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants