Skip to content

Commit 0085139

Browse files
docs: add Semantic PRs and CLA Assistant setup (#1028)
1 parent 8470434 commit 0085139

1 file changed

Lines changed: 38 additions & 3 deletions

File tree

‎.github/organization-onboarding.md‎

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Create the GitHub organization and its public `.github` repository before adding
1616
5. Back in the maintainer's session, use **People** to change `LizardByte-bot` to **Owner**. Keep the maintainer's
1717
owner access. `LizardByte-bot` owns `ORG_SYNC_ADMIN_TOKEN` and administers the new organization for the replicator.
1818

19-
## 2. Install the GitHub Apps
19+
## 2. Set up GitHub integrations
2020

2121
### Codecov
2222

@@ -37,6 +37,41 @@ Create the GitHub organization and its public `.github` repository before adding
3737
2. In Mend, copy the dependency settings from LizardByte's installation and grant access to the repositories
3838
Renovate should update. Use the [shared Renovate configuration](../renovate/README.md) for repository policy.
3939

40+
### Semantic PRs
41+
42+
1. Install [Semantic PRs](https://github.com/marketplace/semantic-prs) on the new GitHub organization. Choose
43+
**All repositories** to check PR titles in current and future repositories.
44+
2. After [registering the organization](#4-register-the-organization-and-run-the-sync), merge the sync PR that
45+
adds [`.github/semantic.yml`](semantic.yml) to each participating repository. The app reads the
46+
configuration from the default branch. LizardByte checks the PR title for squash merges.
47+
[Semantic PRs configuration](https://github.com/Ezard/semantic-prs#configuration)
48+
49+
### CLA Assistant
50+
51+
1. Install the [CLA Assistant GitHub App](https://github.com/apps/cla-assistant) on the new organization and
52+
grant it access to the repositories that use the CLA.
53+
2. Sign in to [CLA Assistant](https://cla-assistant.io/) with a GitHub account in the new organization.
54+
Under **Configure CLA**, select **Want to link an org?** and authorize the requested OAuth permissions
55+
for your account.
56+
[CLA Assistant organization linking](https://github.com/cla-assistant/cla-assistant/blob/main/COMMON_ISSUES.md#unable-to-link-organization)
57+
3. Open [CLA Assistant's OAuth settings](https://github.com/settings/connections/applications/50f062943f087ec041c6)
58+
from your personal GitHub account. You can also find it under **Settings → Applications → Authorized OAuth Apps**.
59+
Next to the new organization, select **Grant** if GitHub offers it. If GitHub shows **Request access**,
60+
select it and then **Request approval from owners**.
61+
[Requesting organization approval](https://docs.github.com/en/account-and-profile/how-tos/organization-membership/requesting-organization-approval-for-oauth-apps)
62+
4. To approve a pending request, an owner opens the organization's
63+
**Settings → Third-party Access → OAuth app policy**, selects **Review** next to CLA Assistant, then
64+
**Grant access**. Keep the organization's OAuth app policy set to **Access restricted**.
65+
[Approving OAuth apps](https://docs.github.com/en/organizations/managing-oauth-access-to-your-organizations-data/approving-oauth-apps-for-your-organization)
66+
5. Return to CLA Assistant as an organization owner, select the new organization, set the following values,
67+
and save.
68+
69+
- Use the [LizardByte CLA gist](https://gist.github.com/LizardByte-bot/366fb7fea34344a62fbdb26e2bd67089)
70+
and check **Share the Gist**.
71+
- In the username exemption field, enter `dependabot[bot],renovate[bot],copilot-swe-agent[bot],Copilot`.
72+
- Set **Minimum File Number Changes** and **Minimum Line Number Changes** to `1`.
73+
- Enter `LizardByte` in the field for organizations whose public members are exempt from signing.
74+
4075
## 3. Configure SonarQube Cloud
4176

4277
### Create and bind the organization
@@ -121,8 +156,8 @@ Create the GitHub organization and its public `.github` repository before adding
121156
leave **repository** empty. See the [sync run guide](file-sync.md#reviewing-a-run).
122157
5. On project repositories, set the needed `workflow_profiles` once the schema is available. Review
123158
the [settings that need manual setup](org-sync.md#transfer-prerequisites) and verify any applicable
124-
integrations on a project PR, including Codecov's project check and comment. If the project has a
125-
Pages site, configure its Pages domain and DNS separately.
159+
integrations on a project PR, including **Semantic PR**, **license/cla**, and Codecov's project check and
160+
comment. If the project has a Pages site, configure its Pages domain and DNS separately.
126161
6. Check the next **Mirror GitHub to GitLab** run. It creates a subgroup under `lizardbyte` when it has a mirror
127162
to place there. Resolve any existing project occupying `lizardbyte/<org-login-in-lowercase>` before the run
128163
can create that subgroup.

0 commit comments

Comments
 (0)