-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c9f51b
commit 9b7a574
Showing
2 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# Contributing | ||
|
||
New branches should always be associated with a Jira ticket. The branch should be prefixed with the issue key and a short description, like so: `jiraIssueType/AMUPRODUCT-1234/hyphenated-issue-summary`. | ||
## Branch Naming Convention | ||
|
||
## Jira Smart Commits | ||
When creating a new branch, it should be associated with a Jira ticket. The branch name should follow this format: `jiraIssueType/AMUPRODUCT-1234/hyphenated-issue-summary`. | ||
|
||
In scenarios where creating a separate branch for each Jira ticket is not exactly feasible, you can still trigger our automation by using what are called [smart commits](https://confluence.atlassian.com/fisheye/using-smart-commits-960155400.html). | ||
## Using Jira Smart Commits | ||
|
||
To use Jira smart commits, you would include the Jira issue key for each commit like so: `[AMUPRODUCT-1234], [AMUPRODUCT-1235] Knocked out the 4 copy edits needed` | ||
In cases where creating a separate branch for each Jira ticket isn't practical, you can use [smart commits](https://confluence.atlassian.com/fisheye/using-smart-commits-960155400.html) to trigger our automation. Include the Jira issue key in each commit message like this: `[AMUPRODUCT-1234], [AMUPRODUCT-1235] Implemented the 4 required copy edits`. | ||
|
||
## Creating Pull Requests | ||
## Pull Request Process | ||
|
||
Once you have committed your effort in a separate branch, you will need to raise a pull request in Github. While filling out the Pull Request, **Please** follow the pull request template format and write a brief description of any technical details and Jira tickets that are related to the PR. | ||
After committing your changes in a separate branch, you'll need to create a pull request (PR) on Github. When creating the PR, adhere to the provided PR template format and include a concise description of the technical details and related Jira tickets. | ||
|
||
The recommended title for the pull request is typically just the branch name. Again, if a single issue per branch is not feasible, including a brief title of the effort is acceptable. | ||
The PR title should ideally be the branch name. If multiple issues are addressed in a single branch, a brief, descriptive title is acceptable. | ||
|
||
You do not need to fill in the reviewers or assignees. Our CODEOWNERS automation takes care of who will need to review it. As long as a AMU software engineer reviews it and the other checks pass, they will take care of merging the pull request into staging and production. | ||
You don't need to specify reviewers or assignees. Our CODEOWNERS automation determines who will review your PR. Once an AMU software engineer reviews and approves your PR, and all checks pass, they will merge your PR into the staging and production branches. | ||
|
||
> NOTE: On every PR, we do run tests and automatically format the code with Prettier. | ||
> **NOTE:** Every PR triggers tests and automatic code formatting with Prettier. | ||
> NOTE: A PR will not be able to be merged until at least 1 reviewer with write access has approved it and all tests are passing. If a PR is updated with a new commit, stale reviews will be dismissed. | ||
> **NOTE:** A PR can't be merged until at least one reviewer with write access approves it and all tests pass. If a PR is updated with a new commit, previous reviews will be dismissed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
# Cache Next Install Action | ||
|
||
GitHub action to install Node dependencies and cache the result | ||
This GitHub action allows you to install Node.js dependencies and cache the result, improving the efficiency of your workflows. | ||
|
||
## Getting Started | ||
|
||
To get started, clone the repository using the following command: | ||
|
||
```bash | ||
git clone https://github.com/Andrews-McMeel-Universal/cache-next-install | ||
``` | ||
|
||
## Installation | ||
|
||
To make `cache-next-install` a part of your workflow, just add a step to one of your workflows in your `.github/workflows/` directory in your GitHub repository. | ||
To integrate `cache-next-install` into your workflow, add a step to one of your workflows in the `.github/workflows/` directory of your GitHub repository. | ||
|
||
## Configuration Options | ||
|
||
## Options | ||
You can customize the behavior of `cache-next-install` using the following variables: | ||
|
||
| Variable | Description | Required | `[Default]` | | ||
| ------------------- | ----------------------------- | :------: | ----------- | | ||
| `node-version` | Version of Node.js to install | | | | ||
| `node-version-file` | Node version file to use | | `.nvmrc` | | ||
| Variable | Description | Required | Default | | ||
| ------------------- | ----------------------------- | :------: | ------- | | ||
| `node-version` | Specifies the version of Node.js to install. If not provided, the latest version is used. | No | Latest version | | ||
| `node-version-file` | Specifies the Node version file to use. This is useful if you want to specify a particular version of Node.js in a file. | No | `.nvmrc` | |