Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 0879e78

Browse files
authored
Merge pull request #47 from fedden/develop
Update master
2 parents 85d6668 + 11cba5a commit 0879e78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+20358
-132
lines changed

.gitignore

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,127 @@
11
tags
22
tags/
3+
*.pkl
4+
*.gz
5+
6+
### WEB STUFF
7+
8+
# Logs
9+
logs
10+
*.log
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
lerna-debug.log*
15+
16+
# Diagnostic reports (https://nodejs.org/api/report.html)
17+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
18+
19+
# Runtime data
20+
pids
21+
*.pid
22+
*.seed
23+
*.pid.lock
24+
25+
# Directory for instrumented libs generated by jscoverage/JSCover
26+
lib-cov
27+
28+
# Coverage directory used by tools like istanbul
29+
coverage
30+
*.lcov
31+
32+
# nyc test coverage
33+
.nyc_output
34+
35+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
36+
.grunt
37+
38+
# Bower dependency directory (https://bower.io/)
39+
bower_components
40+
41+
# node-waf configuration
42+
.lock-wscript
43+
44+
# Compiled binary addons (https://nodejs.org/api/addons.html)
45+
build/Release
46+
47+
# Dependency directories
48+
node_modules/
49+
jspm_packages/
50+
51+
# Snowpack dependency directory (https://snowpack.dev/)
52+
web_modules/
53+
54+
# TypeScript cache
55+
*.tsbuildinfo
56+
57+
# Optional npm cache directory
58+
.npm
59+
60+
# Optional eslint cache
61+
.eslintcache
62+
63+
# Microbundle cache
64+
.rpt2_cache/
65+
.rts2_cache_cjs/
66+
.rts2_cache_es/
67+
.rts2_cache_umd/
68+
69+
# Optional REPL history
70+
.node_repl_history
71+
72+
# Output of 'npm pack'
73+
*.tgz
74+
75+
# Yarn Integrity file
76+
.yarn-integrity
77+
78+
# dotenv environment variables file
79+
.env
80+
.env.test
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
88+
89+
# Nuxt.js build / generate output
90+
.nuxt
91+
dist
92+
93+
# Gatsby files
94+
.cache/
95+
# Comment in the public line in if your project uses Gatsby and not Next.js
96+
# https://nextjs.org/blog/next-9-1#public-directory-support
97+
# public
98+
99+
# vuepress build output
100+
.vuepress/dist
101+
102+
# Serverless directories
103+
.serverless/
104+
105+
# FuseBox cache
106+
.fusebox/
107+
108+
# DynamoDB Local files
109+
.dynamodb/
110+
111+
# TernJS port file
112+
.tern-port
113+
114+
# Stores VSCode versions used for testing VSCode extensions
115+
.vscode-test
116+
117+
# yarn v2
118+
119+
.yarn/cache
120+
.yarn/unplugged
121+
.yarn/build-state.yml
122+
.pnp.*
123+
124+
### PYTHON STUFF
3125

4126
# Swap
5127
[._]*.s[a-v][a-z]
@@ -153,3 +275,6 @@ dmypy.json
153275

154276
# PyCharm
155277
.idea/
278+
279+
# Mac stuff
280+
.DS_Store

CONTRIBUTING.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
All contributions and ideas are very welcome.
2+
3+
If you want to work on the codebase, then although you don't have to, it is recommended to follow these prodedures to make collaborating with the codebase as painless as possible.
4+
5+
### 1. Clone the repo
6+
7+
With ssh (recommended):
8+
```bash
9+
git clone [email protected]:fedden/pluribus-poker-AI.git
10+
```
11+
12+
With https:
13+
```bash
14+
git clone https://github.com/fedden/pluribus-poker-AI.git
15+
```
16+
17+
### 2. Initialise the repo with git flow
18+
19+
The author use the awesome [git flow](https://github.com/nvie/gitflow), which can make [collaborating with other users a lot easier](https://nvie.com/posts/a-successful-git-branching-model/). Essentially is a collection of high level git scripts that encourage branching.
20+
21+
Should you also want to make use of this, then follow the instructions to get it set up with the repo. You don't have to use it, but this guide will assuse you'll adopt the tools, other wise find and use the relevant git commands to do the same things.
22+
23+
Installing on Debian/Ubuntu
24+
```bash
25+
sudo apt install git-flow
26+
```
27+
28+
If you are using Mac OS X, please checkout the [install instructions](https://github.com/nvie/gitflow/wiki/Mac-OS-X).
29+
30+
Now `cd` to the root of the pluribus repo.
31+
32+
Run:
33+
```bash
34+
git flow init
35+
```
36+
37+
This will now prompt you to set up your branches. Ensure that the "branch should be used for bringing forth production releases" is `master`, and that the "branch should be used for integration of the next release" is `develop`. Hit enter for the rest of the options to provide the defaults. Your terminal should look something like this:
38+
39+
```bash
40+
$ git flow init
41+
42+
Which branch should be used for bringing forth production releases?
43+
- develop
44+
- master
45+
Branch name for production releases: [master] master
46+
47+
Which branch should be used for integration of the "next release"?
48+
- develop
49+
Branch name for "next release" development: [develop] develop
50+
51+
How to name your supporting branch prefixes?
52+
Feature branches? [feature/]
53+
Release branches? [release/]
54+
Hotfix branches? [hotfix/]
55+
Support branches? [support/]
56+
Version tag prefix? []
57+
```
58+
59+
Once you have done this, you are ready to create feature branches to add your new feature.
60+
61+
Feature branches are always created based of of the `develop` branch, which is our "production" branch. Periodically we will merge `develop` into `master` and this will be our stable release, for users only. To create a feature branch, run:
62+
```
63+
git flow feature start my-feature-branch-name-here
64+
```
65+
66+
You are now in your branch, add and commit to it like normal.
67+
```bash
68+
git add .
69+
git commit -m 'commit message here'
70+
git push origin feature/my-feature-branch-name-here
71+
```
72+
73+
### 3. Working on your feature branch
74+
75+
You should be based off of branch `develop` whether or not you make use of `git flow`. Commit your code like normal, and if there has been a day or more between your last commit, you may need to rebase your changes on top of the latest commits (head) of `develop`.
76+
77+
First fetch the latest changes from all branches (and prune any deleted branches):
78+
```bash
79+
git fetch origin -p
80+
```
81+
82+
Next ensure your local `develop` has all of the changes that the remote `develop` has.
83+
```bash
84+
git rebase origin/develop develop
85+
```
86+
87+
Finally ensure your feature branch has all of the changes in `develop` in it.
88+
```bash
89+
git rebase develop feature/my-feature-branch-name-here
90+
```
91+
92+
When you rebase `develop` into your feature branch, you will need to force-push it to the repo. PLEASE BE EXTRA CAREFUL with this - only use force push on a feature branch that only you have worked on, otherwise you may overwrite other peoples commits, as it will directly modify the repo's git history.
93+
```bash
94+
git push origin feature/my-feature-branch-name-here --force
95+
```
96+
97+
### 4. Creating a PR
98+
99+
Once you have wrote your cool new feature, you'll need to make a PR. If you can write any tests to support any new features introduced, this would be very welcome. If you have any conflicts with `develop` please ensure you have rebased with `develop` as instructed in step (3).
100+
101+
Please open a pull request via the github UI and request to merge into `develop`. Once there has been a successful review of your PR, and the automated tests pass, then feel free to merge at your leisure.

0 commit comments

Comments
 (0)