Skip to content

Commit 4bbc87f

Browse files
committed
add note about member role and some formatting
1 parent dc1ea5f commit 4bbc87f

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

docs/CONTRIBUTING.md

+16-14
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ copying path '/nix/store/v2gvj8whv241nj4lzha3flq8pnllcmvv-ignore-5.2.0.tgz' from
1919

2020
If [direnv](https://direnv.net/) is installed and the [hooks are configured](https://direnv.net/docs/hook.html) then the development environment can be _automatically instantiated_ by creating the following `.envrc`, thus removing the need to run `nix-shell` by hand!
2121

22-
```
23-
$ cd ~/code/coder
24-
$ echo "use nix" >.envrc
25-
$ direnv allow
22+
```shell
23+
cd ~/code/coder
24+
echo "use nix" >.envrc
25+
direnv allow
2626
```
2727

2828
Now, whenever you enter the project folder, `direnv` will prepare the environment for you:
@@ -86,12 +86,14 @@ You can test your changes by creating a PR deployment. A PR deployment can be tr
8686
1. By commenting on the PR with `/deploy-pr`
8787
2. By running `./scripts/deploy-pr.sh`
8888
3. Available options
89-
- `-s` or `--skip-build`, the image will not be built again, and the last image will be used.
90-
- `-e EXPERIMENT1,EXPERIMENT2` or `--experiments EXPERIMENT1,EXPERIMENT2`, will enable the specified experiments.
91-
- `-n` or `--dry-run` will display the context without deployment. e.g., branch name and PR number, etc.
92-
- `-y` or `--yes`, will skip the CLI confirmation (only valid for the `./scripts/deploy-pr.sh`)
89+
- `-s` or `--skip-build`, the image will not be built again, and the last image will be used.
90+
- `-e EXPERIMENT1,EXPERIMENT2` or `--experiments EXPERIMENT1,EXPERIMENT2`, will enable the specified experiments.
91+
- `-n` or `--dry-run` will display the context without deployment. e.g., branch name and PR number, etc.
92+
- `-y` or `--yes`, will skip the CLI confirmation (only valid for the `./scripts/deploy-pr.sh`)
93+
94+
> Note: all flags can be used with both `./scripts/deploy-pr.sh` and `/deploy-pr` comment on the PR.
9395
94-
> Note: all flags can be used with both `./scripts/deploy-pr.sh` and `/deploy-pr` comment on the PR,
96+
> Note: You need to be a member or collaborator of the of [coder](github.com/coder) GitHub organization to be able to deploy a PR.
9597
9698
Once the deployment is finished, a unique link and credentials will be posted in the [#pr-deployments](https://codercom.slack.com/archives/C05DNE982E8) Slack channel.
9799

@@ -148,9 +150,9 @@ To create a full dump, run a fully fledged Coder deployment and use it to
148150
generate data in the database. Then shut down the deployment and take a snapshot
149151
of the database.
150152

151-
```
152-
$ mkdir -p coderd/database/migrations/testdata/full_dumps/v0.12.2 && cd $_
153-
$ pg_dump "postgres://coder@localhost:..." -a --inserts >000069_dump_v0.12.2.up.sql
153+
```shell
154+
mkdir -p coderd/database/migrations/testdata/full_dumps/v0.12.2 && cd $_
155+
pg_dump "postgres://coder@localhost:..." -a --inserts >000069_dump_v0.12.2.up.sql
154156
```
155157

156158
Make sure sensitive data in the dump is desensitized, for instance names,
@@ -159,8 +161,8 @@ emails, OAuth tokens and other secrets. Then commit the dump to the project.
159161
To find out what the latest migration for a version of Coder is, use the
160162
following command:
161163

162-
```
163-
$ git ls-files v0.12.2 -- coderd/database/migrations/*.up.sql
164+
```shell
165+
git ls-files v0.12.2 -- coderd/database/migrations/*.up.sql
164166
```
165167

166168
This helps in naming the dump (e.g. `000069` above).

0 commit comments

Comments
 (0)