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
Copy file name to clipboardExpand all lines: docs/synchronizations-faq.md
+71-8Lines changed: 71 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,79 @@
1
-
# Synchronization FAQ
2
-
##
1
+
# Synchronizations
2
+
##Synchronization of users, teams, permissions and repositories
3
3
4
-
Synchronizations allow you to keep packages, teams, their members, and access permissions in sync with your code hosting platform, e.g. GitHub, GitLab or Bitbucket.
4
+
To simplify the initial setup and maintenance of a Private Packagist organization, we offer optional synchronization for GitHub organizations,
5
+
Bitbucket workspaces and GitLab groups. This synchronization keeps teams, their members, and access permissions in sync.
6
+
So you only need to manage users and permissions in a single place.
5
7
6
-
## What happens if you promote a synchronization to a primary synchronization?
8
+
Apart from synchronizing teams, users, and permissions, setting up the synchronization will simplify the addition of new packages
9
+
to your Composer repository. When you create a **new repository** on GitHub, Bitbucket, or GitLab, it will be **added as a
10
+
Composer package automatically** if it contains a _composer.json_ file. If you’d like to add existing repositories as packages,
11
+
you can do so with the click of a button on the Packages tab in your organization.
12
+
13
+
**Update web hooks** notifying Packagist of new code pushes will be installed in the background, and **credentials to access
14
+
the package** will be **configured automatically**.
15
+
16
+
## Getting started
17
+
18
+
You can log into Private Packagist using an account on GitHub.com, Bitbucket.org, or GitLab.com with the relevant [OAuth integration](integration-github-bitbucket-gitlab.md)
19
+
If you already have an account you can connect these services to your existing account on your [profile page](https://packagist.com/profile).
20
+
21
+
You can then either create a new organization directly synchronized with a GitHub organization, Bitbucket workspace or a GitLab group,
22
+
or you can enable synchronization for an existing Organization in _Settings_.
* Keeps teams, their members, and access permissions in sync with your GitHub organization
31
+
* Code Credentials: GitHub App or GitHub API Token
32
+
* Webhooks: Code changes, releases, created repositories, team creation or member changes
33
+
34
+
### GitHub Enterprise Server
35
+
* Synchronization:
36
+
* Keeps team members and access permissions in sync with your GitHub Enterprise organizations
37
+
* Code Credentials: GitHub API Token
38
+
* Webhooks: Code changes, releases, created repositories, team creation or member changes
39
+
40
+
### Bitbucket Cloud (bitbucket.org)
41
+
* Synchronization:
42
+
* Keeps groups, their members, and access permissions in sync with your Bitbucket workspace
43
+
* Code Credentials: Bitbucket API Key or Bitbucket App Password
44
+
* Webhooks: Code changes and releases
45
+
46
+
### Bitbucket Data Center / Server
47
+
* Synchronization:
48
+
* Keeps users and access permissions in sync with your Bitbucket Server projects
49
+
* Individual collaborators aren't supported
50
+
* Code Credentials: personal access token which are available since Bitbucket Server 5.5 or username and password for older versions
51
+
* Webhooks: Code changes and releases
52
+
53
+
#### GitLab
54
+
* Synchronization:
55
+
* Keeps teams, their members, and access permissions in sync with your GitLab groups
56
+
* Individual collaborators aren't supported
57
+
* Code Credentials: GitLab API token
58
+
* Webhooks: Code changes and releases
59
+
60
+
#### GitLab Self-Managed
61
+
* Synchronization:
62
+
* Keeps teams, their members, and access permissions in sync with your GitLab groups
63
+
* Individual collaborators aren't yet supported
64
+
* Code Credentials: GitLab API Token
65
+
* Webhooks: Code changes and releases
66
+
67
+
## Frequently asked questions
68
+
69
+
### What happens if you promote a synchronization to a primary synchronization?
7
70
8
71
Synchronized Private Packagist organizations automatically have all admins and owners of the remote organization of the primary synchronization assigned to the admins and owners teams in Private Packagist. Admins and owners of additional synchronized remote organizations are not added to the admins or owners teams in Private Packagist.
9
72
10
73
When promoting a synchronization to primary, admins and owners of the corresponding remote organization will now be the sole members of the admins and owners teams on Private Packagist.
11
74
So keep in mind that if you switch the primary synchronization to a different service (e.g. from GitHub to Bitbucket), all admins and owners who do not have their user accounts connected to the new service yet (Bitbucket in the example) will lose admin/owner access to the Private Packagist organization. To restore their access, the users have to connect their account to the new service on the profile page.
12
75
13
-
## How to migrate a synchronization from GitHub to Bitbucket?
76
+
###How to migrate a synchronization from GitHub to Bitbucket?
14
77
15
78
1. Add a new synchronization with your Bitbucket workspace.
16
79
2. Delete the packages that were created by the GitHub synchronization. You can filter by the GitHub synchronization on the package list page and then you can delete the packages from that list.
@@ -19,19 +82,19 @@ So keep in mind that if you switch the primary synchronization to a different se
19
82
20
83
You can follow the same steps above in case you want to migrate from Bitbucket to GitLab or the other way around.
21
84
22
-
## How to migrate from one organization to another one in GitHub?
85
+
###How to migrate from one organization to another one in GitHub?
23
86
24
87
1. Add a new synchronization with the new GitHub organization.
25
88
2. On GitHub, you can transfer the packages from the old organization to the new one.
26
89
3. In case the old synchronization was primary, you need to promote the new synchronization to primary otherwise you won't be able to delete the old one. After verifying that the new synchronization successfully ran you can remove the old synchronization with GitHub. Please refer to ["What happens if you promote a synchronization to a primary synchronization?"](#what-happens-if-you-promote-a-synchronization-to-a-primary-synchronization) for more details about promoting a synchronization to primary.
27
90
28
-
## How to migrate from one workspace to another one in Bitbucket?
91
+
###How to migrate from one workspace to another one in Bitbucket?
29
92
30
93
1. Transfer your repositories in Bitbucket from the old workspace to the new one.
31
94
2. Create a new synchronization with the new Bitbucket workspace.
32
95
3. In case the old synchronization was primary, you need to promote the new synchronization to primary. Otherwise you won't be able to delete the old synchronization. After verifying that the new synchronization successfully ran, you can remove the old synchronization with Bitbucket. Please refer to ["What happens if you promote a synchronization to a primary synchronization?"](#what-happens-if-you-promote-a-synchronization-to-a-primary-synchronization) for more details about promoting a synchronization to primary.
33
96
34
-
## How to migrate from one group to another one in GitLab?
97
+
###How to migrate from one group to another one in GitLab?
35
98
36
99
1. Create a new synchronization with the new GitLab workspace.
37
100
2. Transfer your repositories in GitLab from the old group to the new one.
Copy file name to clipboardExpand all lines: features/integration-github-bitbucket-gitlab.md
+1-9Lines changed: 1 addition & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,10 @@
3
3
4
4
Composer has broad support for version control systems, code hosting platforms and authentication protocols. As a consequence **Private Packagist is compatible with all the same systems and platforms**, namely Git, Mercurial or Subversion using SSH access, HTTP Basic Auth over SSL, or their native protocols.
5
5
6
-
To simplify the initial setup and maintenance of a Private Packagist account, we offer optional synchronization for GitHub organizations, Bitbucket workspaces and GitLab groups. This **integration keeps teams, their members, and access permissions in sync** with a matching GitHub organization. So you only need to manage users and permissions in a single place.
6
+
To simplify the initial setup and maintenance of a Private Packagist account, we offer optional [synchronization](../docs/synchronizations-faq.md) for GitHub organizations, Bitbucket workspaces and GitLab groups.
7
7
8
8
You can log into Private Packagist using an account on GitHub.com, Bitbucket.org, or GitLab.com. If you already have an account you can connect these services to your existing account on your [profile page](https://packagist.com/profile).
9
9
10
-
You can then either create a new organization directly synchronized with a GitHub organization, Bitbucket workspace or a GitLab group, or you can enable synchronization for an existing Organization in _Settings_.
Apart from synchronizing teams, users, and permissions, setting up the integration will simplify the addition of new packages to your Composer repository. When you create a **new repository** on GitHub, Bitbucket, or GitLab, it will be **added as a Composer package automatically** if it contains a _composer.json_ file. If you’d like to add existing repositories as packages, you can do so with the click of a button on the Packages tab in your organization.
15
-
16
-
**Update web hooks** notifying Packagist of new code pushes will be installed in the background, and **credentials to access the package** will be **configured automatically**.
17
-
18
10
## Integrations
19
11
20
12
Private Packagist integrates with the following systems:
0 commit comments