Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Oct 18, 2024
1 parent 1bba613 commit a5b1241
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ changes are required. Here is an example:
To migrate from `buf-push-action` to `buf-action`, there are a few changes that
need to be made:
- `buf_token` has been renamed to `token`.
- `create_visibility` has been removed. The default visibility is `private`.
- `draft` has been removed. The default behavior of the action is to set the
labels using the `--git-metadata` flag. This will set the `--label` flag to
the branch name. Drafts have been deprecated in favor of labels.

The new actions default behavior is to push the branch name as a label. This
behavior will be similar to existing workflows that use drafts. Here is an
example of how a migration would look:
- `create_visibility` has been removed. If the BSR repository doesn't exist
it will always be created with the visbility of `private`. To disable
creation of repositories set the parameter `push_disable_create` to `true`.
- `draft` has been removed. Drafts have been deprecated in favor of labels.
The default behavior of the action is to set the labels using git metadata.
This will be similar to the existing behaviour of drafts as the branch name
will be used for the label.

Here is an example of how a migration would look:

```diff
steps:
Expand Down

0 comments on commit a5b1241

Please sign in to comment.