File: CONTRIBUTING.md

package info (click to toggle)
golang-github-yuin-gopher-lua 0.0~git20170915.0.eb1c729-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, experimental, forky, sid, trixie
  • size: 852 kB
  • sloc: yacc: 479; python: 73; makefile: 18
file content (49 lines) | stat: -rw-r--r-- 1,312 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# How to Contribute
Any kind of contributions are welcome.

## Building GopherLua

GopherLua uses simple inlining tool for generate efficient codes. This tool requires python interpreter. Files name of which starts with `_` genarate files name of which does not starts with `_` . For instance, `_state.go` generate `state.go` . You do not edit generated sources.
To generate sources, some make target is available.

```bash
make build
make glua
make test
```

You have to run `make build` before committing to the repository.

## Pull requests
Our workflow is based on the [github-flow](https://guides.github.com/introduction/flow/>) .

1. Create a new issue.
2. Fork the project.
3. Clone your fork and add the upstream.
    ```bash
    git remote add upstream https://github.com/yuin/gopher-lua.git
    ```

4. Pull new changes from the upstream.
    ```bash
    git checkout master
    git fetch upstream
    git merge upstream/master
    ```

5. Create a feature branch
    ```bash
    git checkout -b <branch-name>
    ```

6. Commit your changes and reference the issue number in your comment.
    ```bash
    git commit -m "Issue #<issue-ref> : <your message>"
    ```

7. Push the feature branch to your remote repository.
    ```bash
    git push origin <branch-name>
    ```

8. Open new pull request.