- All Implemented Interfaces:
- Enclosing class:
public static class SCMHeadOrigin.Fork extends SCMHeadOriginA named fork. The name should be simple not an URL. Some examples of simple names:
bobsmithwhich could be a user's fork where the user is Bob Smith
bobsmith/foowhich could be a user's fork where the user is Bob Smith and perhaps he forked into a repository with the name "foo"
manchu/bobsmithwhich could be a user in Team Manchu called Bob Smith who forked the repository
Please do not use things like
https://github.com/stephenc/scm-api-pluginas the fork name no matter how tempting.
For one, this includes details that are originating from the backing source control system. If we migrated from GitHub to GitHub Enterprise, the fork would be migrated also. A good name will remain the same after such a migration... so presumably during such a migration the fork's actual location would change from
https://github.example.com:8443/stephenc/scm-api-pluginso a good name would be either
As GitHub encourages that forks have the same repository name the
/scm-api-pluginis redundant, so we would choose
stephencas the fork name when the repository name matches upstream and use
stephenc/fork-of-scm-api-pluginif the fork name differs from the upstream name.
- See Also:
- Serialized Form
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getName()Gets the name of this fork.
public Fork(@NonNull String name)Creates a fork origin instance.
name- the name.
@Exported @NonNull public String getName()Gets the name of this fork.
- the name of this fork.