Skip to content

Commit 16a9315

Browse files
committed
Added Code Snippet Submission Template
1 parent 4675edb commit 16a9315

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,35 @@ This repository has been approved by Hacktoberfest in spirit of learning source
133133

134134
That's it! **For detailed contribution instructions, please read our [CONTRIBUTING.md](CONTRIBUTING.md) guide before submitting.**
135135

136+
137+
📝 Code Snippet Submission Template
138+
139+
To help maintain consistency, please use the following structure when adding a new snippet:
140+
141+
Snippet Name: <Descriptive name>
142+
Category: <Core APIs | Server-Side | Client-Side | Modern Development | Integration | Specialized Areas>
143+
Description: <Brief summary of what the snippet does>
144+
Usage: <Step-by-step instructions to use the snippet>
145+
Code File(s):
146+
- snippet_file.js # main snippet
147+
- variant.js # optional variants
148+
Tags: <keywords to help search>
149+
Author: <Your GitHub username>
150+
151+
152+
Example:
153+
154+
Snippet Name: GlideRecord Query Optimization
155+
Category: Core APIs
156+
Description: Shows how to optimize GlideRecord queries for better performance.
157+
Usage: Copy the snippet into a Background Script or Script Include and adjust table/fields as needed.
158+
Code File(s):
159+
- basic_query.js
160+
- optimized_query.js
161+
Tags: GlideRecord, Performance, Optimization
162+
Author: @yourusername
163+
164+
136165
### What makes a good contribution?
137166

138167
- **Useful snippets** that solve common ServiceNow development challenges

0 commit comments

Comments
 (0)