3.1 KiB
Contributing
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
Contributions to this project are released to the public under the project's open source license.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Found a bug?
- Ensure the bug was not already reported by searching on GitHub under Issues.
- If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or a reproducable test case demonstrating the expected behavior that is not occurring.
- If possible, use the relevant bug report templates to create the issue.
What should I know before submitting a pull request or issue
The code related to upload-artifact
is split between this repository and actions/toolkit where the @actions/artifact
npm package is housed. The npm package contains the core functionality to interact with artifacts. Any extra functionality on top of interacting with the apis such as search is inside this repository.
Artifact related issues will be tracked in this repository so please do not open duplicate issues in actions/toolkit
.
Submitting a pull request
- Fork and clone the repository
- Configure and install the dependencies:
npm install
- Make sure the tests pass on your machine:
npm run test
- Create a new branch:
git checkout -b my-branch-name
- Make your change, add tests, and make sure the tests still pass
- Make sure your code is correctly formatted:
npm run format
- Make sure your code passes linting:
npm run lint
- Update
dist/index.js
usingnpm run release
. This creates a single javascript file that is used as an entry-point for the action - Push to your fork and submit a pull request
- Pat your self on the back and wait for your pull request to be reviewed and merged.
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
- Write tests.
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
- Write a good commit message.
Resources
Thanks! ❤️ ❤️ ❤️
GitHub Actions Team :octocat: