- Clone the repository:
https://github.com/devslopes/devslopes-git-pr-assignment
- Create a remote repository for this project on Github
- Push this repository from the command line to Github.
NOTE:: When adding this repository to Github, you will need to replace the word
origin
withdestination
(or any other word you wish to use). This is because the remote repository you cloned is already using the name,origin
- Your commits and Pull Request MUST EXCLUDE OS generated files/folders and files with sensitive data. (i.e: OS-specific and editor specific settings, debug logs, build tools, etc).
- Your commit message should have a subject line and body. It should follow the 7 commit message convention guidelines
- Create a new branch off your local
main
branch called,feature/bug-tracking
- Create a
.gitignore
file - Create a
.env.local
file and copy/paste the following into it:
**DUMMY DATA**
CONVERTKIT_API_URL=https://api.convertkit.com/v3/
CONVERTKIT_API_KEY=D4SkateFzVBORyLK98DIE4321
CONVERTKIT_API_SECRET_KEY=123lY2sshhh-456NoXOne7fvH6i2-knowesJ0
FORM_ID=1234567
CONTENTFUL_SPACE_ID=d3-space-crocodiles
CONTENTFUL_ACCESS_TOKEN=givejkW9NU_xGGTZxME-xUXTHE-XMgg711codesj4pN
- Update the
.gitignore
file to ignore OS generated files/folders and files with sensitive data - As you make changes to this project, be mindful of the requirements (Requirements state the Pulll Request MUST EXCLUDE files with sensitive data).
- It's a good practice to check the changes in your project before adding them to the staging area. You want to make sure you are only tracking the files you intend to.
- Add and commit your changes locally
- Create a new file,
.env.production.local
- Copy/paste the following sensitive data into,
.env.production.local
:SENTRY_DSN=https://1eb0a2142.ingest.sentry.io/711007
- Create a new file,
app.js
- Add the following to
app.js
:
var loveToCode = true;
var BUG_TRACKING_DNS = process.env.production.local;
- Add and commit your changes locally
- Add the following to
styles.css
:
h2 { color: blue; }
- Add and commit your changes locally
- Push this branch to your remote repository. (This will create a new remote branch). Remember, when you push your code, don't use "origin". Use
destination
(or the whatever word you chose to use when you set up the remote repo) - Create a Pull Request for this branch to be merged into
main
- To submit your assignment, put the URL of your GitHub repository in a
.txt
file, zip the file and then upload it through your student portal so we can verify the commit history is correct. DO NOT MERGE YOUR PR UNTIL IT HAS BEEN APPROVED. A Devslopes mentor will review your PR (Pull Request), comment as necessary and reject or approve your PR
- If you realize your PR includes files that are not supposed to be tracked, you can delete your local and remote repository and start over.