You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Github gives you the option to set a different branch as default, on np you can restrict publishing to be only from 'master' but not any other branch. It feels like it'd be nice to restrict publish to be from a specific named branch as well.
Description
Add a config option to allow users to set a different branch name to restrict publishing to. Then, if the --any-branch flag isn't passed, when the 'Check current branch' step runs it should compare the current branch name to the publishing branch in the config.
Is the feature request related to a problem?
We use 'release' as our master branch and I'd like to be able to restrict publishing to just that branch.
Possible implementation
It looks like git.verifyCurrentBranchIsMaster just needs to take the value from config for the comparison. If there is not custom branch set then it defaults to master. Is the config accessible here?
Alternatives
¯\(ツ)/¯
The text was updated successfully, but these errors were encountered:
Github gives you the option to set a different branch as default, on np you can restrict publishing to be only from 'master' but not any other branch. It feels like it'd be nice to restrict publish to be from a specific named branch as well.
Description
Add a config option to allow users to set a different branch name to restrict publishing to. Then, if the --any-branch flag isn't passed, when the 'Check current branch' step runs it should compare the current branch name to the publishing branch in the config.
Is the feature request related to a problem?
We use 'release' as our master branch and I'd like to be able to restrict publishing to just that branch.
Possible implementation
It looks like
git.verifyCurrentBranchIsMaster
just needs to take the value from config for the comparison. If there is not custom branch set then it defaults to master. Is the config accessible here?Alternatives
¯\(ツ)/¯
The text was updated successfully, but these errors were encountered: