Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

batches: add fork attribute to changeset template#51572

Merged
adeola-ak merged 11 commits into
mainfrom
aa/spec-schema
May 31, 2023
Merged

batches: add fork attribute to changeset template#51572
adeola-ak merged 11 commits into
mainfrom
aa/spec-schema

Conversation

@adeola-ak

@adeola-ak adeola-ak commented May 8, 2023

Copy link
Copy Markdown
Contributor

closes: #50849

Adding fork attribute to changeset template as a boolean for now
True will force the default forking behavior of the code host" and false will force not forking the repo, overriding what is set in batchChanges.enforceForks If nothing is set in the batch spec but the global setting is set, then it will fall back on that behaivor

In the future we can add the ability to specify custom namespaces and fork names

Test plan

tested that a spec with the fork attribute set to true, but global enforce forks setting off will create user fork
as well as if the fork attribute in the spec is not set at all, but gloabl enforce forks it set, it will

@cla-bot cla-bot Bot added the cla-signed label May 8, 2023
@adeola-ak adeola-ak marked this pull request as ready for review May 26, 2023 13:42
@adeola-ak adeola-ak requested a review from a team May 26, 2023 13:42
@sourcegraph-bot

sourcegraph-bot commented May 26, 2023

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 32c6d44...25df35b.

Notify File(s)
@eseliger enterprise/internal/batches/types/changeset_spec.go
@sourcegraph/delivery doc/admin/config/batch_changes.md

@adeola-ak adeola-ak changed the title update batch spec schema batches: add fork attribute to changeset template May 26, 2023

@BolajiOlajide BolajiOlajide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good to me.

I haven't tested it locally, but it looks good from a code review perspective.

Comment thread enterprise/internal/batches/types/changeset_spec.go
Comment thread schema/batch_spec.schema.json

@courier-new courier-new left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💯 Looking gooooood. Do you mind adding a CHANGELOG entry and maybe doing a comb over any of our docs related to forking/the enforceForks property to update them where appropriate?

Comment thread enterprise/internal/batches/types/changeset_spec.go Outdated
Comment thread schema/batch_spec.schema.json
Comment thread schema/batch_spec.schema.json Outdated
adeola-ak and others added 6 commits May 30, 2023 10:22
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>

@courier-new courier-new left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yay looks great!! Just had one suggestion for the new docs change.

Comment thread doc/admin/config/batch_changes.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

batches: add fork attribute to changeset template

4 participants