-
Notifications
You must be signed in to change notification settings - Fork 301
How tos
Gareth Fuller edited this page May 5, 2022
·
33 revisions
A collection of guides for specific types of contributions.
A hotfix release is a release straight to the master
branch and therefore an immediate deployment to the production apps. Hotfixes are for when something needs to go live before the next weekly release cycle which happens every week on a Monday.
To perform a hotfix, follow this process:
- Branch off
master
:git checkout master && git pull
- Make your changes locally.
- Stage & commit your changes:
git add -A && git commit -m "Describe your change"
- Increase the app's patch version in package.json. e.g. If the version is x.x.1 then change to x.x.2
- Run npm install:
npm install
- Stage & commit the version update:
git add -A && git commit -m "Bump version"
- Push your branch to github and create a PR.
- Once approved, merge your PR with
master
. - Create a new PR with your hotfix branch but now set the base (the branch you want to merge into) to
develop
. - After approvals, merge your hotfix into
develop
. - Draft a new release setting the release version and title of the release to the version number you set in step 4.
- Add a description for your hotfix that is similar in structure to previous hotfix releases.
- Publish your release.
- If you're not a core repo contributor, create a pull request from a fork. If you are a core contributor follow the hotfix release process.
- Add your pool ID to the relevant network allowlist: Mainnet, Polygon or Arbitrum
- Stage & commit that change:
git commit -m "Add my stable pool to allowlist"
- Increase the app's patch version in package.json. e.g. If the version is x.x.1 then change to x.x.2
- Run npm install:
npm install
- Stage & commit the version update:
git commit -m "Bump version"
- Push your branch to github and create a PR.
- Request a review from a couple of core team members.
If the PR looks good, a core team member will merge with the master branch and run through the hotfix release process.
- If you're not a core repo contributor, create a pull request from a fork. If you are a core contributor follow the hotfix release process.
- Add the pool ID and network to the appropriate array in
voting-gauge-pools.ts
(Mainnet, Arbitrum & Polygon) - Add a
POOLS_API_URL
variable to .env.development (ask a core member for this URL). - Run the voting gauge generation script:
npm run generate:voting-gauges
- Add the pool ID to the relevant stakable allowlist array: Mainnet, Polygon or Arbitrum
- Stage & commit these changes:
git commit -m "Update voting gauge list"
(please avoid staging your change to.env.development
) - Increase the app's patch version in package.json. e.g. If the version is x.x.1 then change to x.x.2
- Run npm install:
npm install
- Stage & commit the version update:
git commit -m "Bump version"
- Push your branch to github and create a PR.
- Request a review from a couple of core team member.
If the PR looks good, a core team member will merge with the master branch and run through the hotfix release process.