- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 10-13-2022 08:30 PM
Hi All,
As you know we are in the month of October , and as always its time for HACKTOBERFEST 2022.
Its reallly great to see how tons of developers are participating and with the new comers in this domain , there are a lot of people who are actually new to GIT and HACKTOBERFEST also.
So in this article I will try to create an end to end guidelines based on all the queries in received.
So lets get started !!!!
Lets first understand what is this HACKTOBERFEST and GIT
- HACKTOBERFEST :
Hacktoberfest is DigitalOcean’s annual event that encourages people to contribute to open source throughout October. Much of modern tech infrastructure—including some of DigitalOcean’s own products—relies on open-source projects built and maintained by passionate people who often don’t have the staff or budgets to do much more than keep the project alive. Hacktoberfest is all about giving back to those projects, sharpening skills, and celebrating all things open source, especially the people that make open source so special.
- GIT :
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Now lets start how we can participate in the same
- Create a account on GitHub
- Navigate to https://github.com/
- Sign up to the GitHub
- Create account on
- Navigate to https://hacktoberfest.com/
- Sign up on hacktoberfest using Github
- Once this is done your account set up is done. Now you are ready to contribute to the HackoctoberFest
- Open the ServiceNow blog link https://developer.servicenow.com/blog.do?p=/post/hacktoberfest-2022/#code-snippets to get the details of all the project for which you can contribute. The project list are as given below :
- Click on the project link where you wanna contribute, it will redirect to the logged in GitHub . In that to the project repository.
- Now in the selected project check for 2 files
- CONTRIBUTING.md
- README.md
- This 2 files will give you complete understanding of below things :
- What this project is all about ?
- How you can contribute to this project ?
- What is expected contribution to the project ?
- Based on above points you can take a call if you wanna contribute to that project or explore on others.
- Once you finalize the project we can start for the set up
- Generate PAT token for GIT for Authentication on ServiceNow
- For this log in to GitHub account
- Navigate to Settings
- Navigate to Developer settings
- Click on Personal access token
- Click on Generate new token
- Select all scope and Expiration and provide note
- Click on Generate token
- You will get the token . Just make a note of the same
- Now click on the project link where you wanna contribute and it will route you to the Git project
- Fork the repository
- Click on Fork
- Create a new Fork for the project
- Copy the fork URL
- Create a Branch
- Click on main branch
- Type the name of the new Sub Branch which you wanna create
- Click on the "Create branch xyz from main"
- Once the Branch is completed Open your ServiceNow PDI
- Create Credentials
- Navigate to Connection and Credentials >> Credentials
- Create New
- Select Type as Basic Auth Credentials
- Fill the form and submit
- Name : Any name for credentials
- Username : UserName of your Git account
- Password : PAT token which you have generated in step 1
- Now Navigate to Studio for importing the application
- Import application from source control
- Open ServiceNow Studio
- Click on Import from Source Control
- Provide the required details
- URL : URL of the forked repository on GitHub 12
- Credentials : Credentials created in step 15
- Click on Import it will import the application files from copied repo to the ServiceNow PDI
- Now you can add your code Create , update, modify files the way you want to enhance the application
- Once you are done with the contribution commit the changes
- Commit changes
- Open studio
- Click on Source Control
- Commit Changes
- Select the files which you want to commit
- Provide readme instructions for the same
- The code is being commit
- Open GitHub the forked repository
- You will see create pull request option on banner
- Create Pull request
- Wait for the Pull Request to be reviewed and merged
- Hurray you are done with the entire life
- Create 4 such pull request and win Tshirt
Note : The Source control will be possible onlyb for application repository . For repositoy like code snippet and Syntax macros you have to upload the file at Git only. So skip steps after 13.
Hope you will find this article useful If yes please mark it HElpful or Correct.
Regards,
Amit Gujarathi
- 779 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Thanks for sharing this article! Very helpful for first time contributor.
Cheers
Abhishek Pandey