---
url: /en/sponsor.md
---
You can use the sponsorship feature to provide financial encouragement to projects or users who have helped you or whom you admire.

The sponsorship feature of CNB connects platform users with creators' WeChat sponsorship codes, and the platform will display the sponsorship code information in appropriate locations.

After scanning the code, the sponsorship funds go directly to the WeChat sponsorship code, and CNB does not charge any processing fees.

Before sponsoring, please verify the information published by the creator to ensure credibility.

## Upload Sponsorship Code

1. Generate a WeChat Sponsorship Code

   Go to your personal WeChat, tap the + in the top-right corner -> Payment -> Tap Sponsorship Code, complete the sponsorship setup, and save the sponsorship code.

   ![wechat-sponsor](/images/wechat-sponsor.png)

2. Upload the WeChat Sponsorship Code

   Go to the CNB platform - Personal Settings, and upload the WeChat sponsorship code you just generated.

## Display Sponsorship Code

### Personal Homepage

When visiting a user's homepage, if the user has uploaded a sponsorship code, click the sponsorship button to view the code and scan it via WeChat to sponsor.

### Repositories Homepage

When visiting a repository homepage, the sponsorship information of the Top 5 most active users in the repository from the past 30 days will be displayed by default.

If a user has not uploaded a sponsorship code, they will not be displayed, and **no lower-ranked users will be substituted**.

Repository activity is calculated based on user activities such as commits, pull requests, and issues.

## Customize Repository Sponsorship Information

If you need to customize the list of sponsored users for a repository or add custom donation links, you can add a `.cnb/FUNDING.yml` file to the default branch.

File content:

```yaml
# Specify sponsored users by entering usernames, up to 5 users. Once configured, only the specified users will be displayed, replacing the top 5 contributors.
cnb:
  - user1
  - user2
# Custom donation links can be displayed in the sponsorship section, up to 5 URLs.
custom:
  - custom-url1
  - custom-url2
```

## Stop Accepting Sponsorships

Personal sponsorship information: Go to Personal Settings and delete the sponsorship code.

If donation links are configured, you need to delete the sponsorship information in `.cnb/FUNDING.yml` in the repository.
