Shamma Negi
Kilo Sage
Kilo Sage

Hi All,

 

Today I will cover how to contribute under code/snippets category in Hackathon#24.

I will cover how I did my submission with screenshots.

 

Step#1: Go to GITHUB Repository

 

I went here and clicked on Fork and created my own repository as below:

spnegi/SN_code-snippets: ServiceNow's Code Snippets community repository, managed by the Developer P...

 

Step#2: Then under my REPO I went to "Attachment" folder and clicked on "Create new File" as shown below:

 

ShammaNegi_0-1728901264739.png

 

 

We have to create 2 files in each folder we create. So Against one pull request we have to Create one folder and rwo files within that folder 1. Script.js 2. readme.md

 

Scipt.js will have the script and readme.md file will have the description of the script.

 

Step#3: When you commit each file system will ask you if you want to create the branch or commit in main branch. I would recommend creating branch every time you submit the new submission

 

ShammaNegi_1-1728901465006.png

ShammaNegi_0-1728902859679.png

 

 

When you click on commit changes button it will ask you which branch you want to commit

ShammaNegi_1-1728902890900.png

 

 

Step#4: What screen does system show when you commit the files

 

ShammaNegi_2-1728902894586.png

 

Step#5: Create Pull Request for your submission

 

Make sure you have the required files in your File changed tab as shown below. These files should be relevant to your pull request submission title.

 

ShammaNegi_0-1728907220910.png

 

 

 

 

Hope it helps!

 

Thanks,

Shamma

 

1 Comment