Skip to content

A pull-request based workflow for developing and submitting Clojure patches to Jira.

Notifications You must be signed in to change notification settings

frenchy64/clojure-local-dev

Repository files navigation

Clojure local dev

A pull-request based workflow for developing and submitting Clojure patches to Jira.

A good introduction is Developing Clojure patches with Pull Requests.

Example

https://github.com/frenchy64/clojure/pulls

Features

Background

If you want to contribute to Clojure, familiarize yourself with Clojure's development process.

This repo helps contributors develop, submit, screen, and test patches.

Setup

  1. Clone this repo and cd into this directory.
  2. Create a new file called github-user.edn that contains exactly your GitHub user name. See github-user.edn.sample for an example for user frenchy64.
  3. Fork Clojure to the same GitHub user as github-user.edn. For example, user frenchy64 should fork to frenchy64/clojure.
  4. Run ./clone.sh to clone your Clojure fork to the master folder. Don't develop here! Make new branches (see next section).

Development

  1. Create a new branch with ./new-branch.sh BRANCH.
    • eg., ./new-branch.sh CLJ-123456-my-patch && cd CLJ-123456-my-patch
  2. Develop patch in this branch. Push branch to your Clojure fork on GitHub and create a self-PR via ../open-pr.sh. Develop until the feature is done and the build passes.
  3. In the branch's worktree directory, format a patch via ../format-patch.sh. Address any trailing whitespace errors.
  4. To test the patch itself, use ./new-branch.sh TEST_BRANCH && cd TEST_BRANCH to create a fresh branch and call ../apply-patch.sh ../REAL_BRANCH/CLJ-123456.patch. to apply it.

About clojure-local-dev

See CHANGELOG.md for version history of this repo. Backwards compatibility is preserved when possible, usually it's fine to pull main frequently but occasionally a tag will be created to mark major "releases".

About

A pull-request based workflow for developing and submitting Clojure patches to Jira.

Resources

Stars

Watchers

Forks

Languages