Skip to content

Commit 5dc8da6

Browse files
authored
Merge pull request #117 from packagist/conductor
Conductor: further explain setup steps
2 parents 87b0bc4 + e8ac523 commit 5dc8da6

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

docs/conductor/getting-started.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
# Getting started with Conductor
22
##
33

4-
Conductor will group and schedule automated dependency updates on your own Continuous Integration platform. If the update succeeds, Conductor sends you a pull request to your code hosting platform (GitHub, GitLab, Bitbucket) with the changed composer.lock file and, if necessary, other files modified by Composer plugins or scripts.
4+
Conductor will group and schedule automated dependency updates on your own continuous integration platform. If the update succeeds, Conductor will send you a pull request to your code hosting platform (GitHub, GitLab, Bitbucket) with the changed composer.lock file and, if necessary, other files modified by Composer plugins or scripts.
55

6-
To use Conductor:
6+
Prerequisites for receiving dependency update PRs from Conductor:
77

8-
- You need to be approved for early access to Conductor. [Join to the waitlist](/features/conductor) and wait for approval.
9-
- You need a Private Packagist trial or subscription on the cloud plan.
10-
- You need to add a workflow to your Continuous Integration platform to run Composer updates, described below.
8+
- Receive early access to Conductor. [Join the waitlist](/features/conductor) and wait for approval.
9+
- Set up an organization on Private Packagist Cloud either with a free trial or subscribe to the cloud plan.
10+
- A synchronization in your Private Packagist organization with your code hosting platform.
11+
- A workflow on your continuous integration platform to run Composer updates.
1112

12-
## Add packages to update automatically
13+
## Set up synchronization
1314

14-
Once you have a Private Packagist organization and Conductor is enabled for you, log into your Private Packagist organization and click on the "Updates" tab in the main navigation.
15+
Once you have a Private Packagist organization and Conductor is enabled for you, log into your Private Packagist organization and head to the "Settings" tab in the main navigation.
16+
Under the "Synchronization" entry you can add [one or more synchronizations](/features/integration-github-bitbucket-gitlab.md) with an organization on your code hosting platform.
17+
This is how you grant us access to your VCS repositories. The synchronization will automatically add any repository with a composer.json file in the root directory as a package to Private Packagist.
1518

16-
Conductor will manage dependencies for packages added to Private Packagist [via synchronization](/features/integration-github-bitbucket-gitlab.md) that have a composer.lock file committed to the repository.
19+
## Configure Conductor for your packages
1720

18-
## Create a workflow on your CI
21+
Access the "Conductor" tab in the main navigation to see a list of available packages that can have their dependencies updated by Conductor.
22+
Each package shown is linked to its VCS repository to which Conductor will send pull requests with dependency updates. Your Composer projects or applications are also a kind of package and must be added to Private Packagist as regular packages to use Conductor on them.
23+
Conductor can only manage dependencies for packages added to Private Packagist [via synchronization](/features/integration-github-bitbucket-gitlab.md) that have a composer.lock file committed to the repository.
24+
25+
To get started, click on the configure link displayed next to the package which you would like Conductor to update. Follow the instructions for your continuous integration platform.
1926

2027
### GitHub Actions
2128

22-
Create a new GitHub Actions workflow in `.github/workflows/dependency-update.yaml` of your GitHub repository using the template below:
29+
Create a new GitHub Actions workflow in `.github/workflows/conductor.yaml` of your GitHub repository using the template below:
2330

2431
CONDUCTOR_GITHUB_ACTIONS_WORKFLOW
2532

@@ -31,16 +38,19 @@ We recommend to create a dedicated authentication token with update access. You
3138

3239
![Create Authentication Token](/Resources/public/img/docs/conductor/authentication-token.png)
3340

34-
The contents of the variable should look like
41+
The contents of the variable should look like this:
3542

3643
```json
3744
{"http-basic": {"repo.packagist.com": {"username": "token", "password": "packagist_out_73a81c..." }}}
3845
```
3946

40-
Conductor needs to verify your CI setup before you can start receiving pull requests.
47+
Conductor needs to verify your CI setup before you can start receiving PRs.
4148

4249
## Verify your CI setup
4350

51+
- Navigate to the "Conductor" tab in your Private Packagist organization.
52+
- Click on the name of your package.
53+
4454
![Task list with verification task](/Resources/public/img/docs/conductor/verification-task-list.png)
4555

4656
Right now all tasks are waiting for the CI verification task on top of the list. Conductor will not start with the regular schedule until this verification task was successful.
@@ -58,9 +68,6 @@ When you run into errors, troubleshoot and fix them. You can trigger the workflo
5868

5969
## How scheduling works
6070

61-
- Navigate to the "Updates" tab in your Private Packagist organization
62-
- Click on the name of your package
63-
6471
The list shows groups of all available updates to be scheduled. Each group of updates is called a task. Conductor will schedule only one task at a time. All others are waiting for the task on top of the list to be successful or paused.
6572
Once Conductor schedules a task it sends a payload to your CI platform that triggers the workflow you just added. The payload contains the commands Composer will run to update a group of dependencies from your package.
6673

@@ -79,7 +86,7 @@ If all these steps succeeded, Private Packagist creates a pull request for the n
7986
![Conductor Pull Request](https://packagist.com/img/features/auto-updates/merged-PR-for-a-security-updated.png)
8087

8188
Once you reviewed the changes and merged the PR, Conductor will schedule the next task.
82-
If you close the PR, the task will be paused and Conductor will schedule the next task. This is the same effect as using the "Pause" button in the UI. Conductor won't attempt to update the dependency to this exact version again but will schedule updates with newer versions.
89+
If you close the PR, the task will be paused and Conductor will schedule the next task. Clicking the "Pause" button in the UI has the same effect. Conductor won't attempt to update the dependency to this exact version again but it will schedule updates to newer versions.
8390

8491
If you want to schedule any other task in the list, click on its name and use the button "Schedule now to create a PR".
8592

0 commit comments

Comments
 (0)