Skip to content

Commit 8000ba4

Browse files
Merge pull request #177 from Sarveshgithub/dev
Master Sync : Auto Generated PR
2 parents b65772b + f0460c1 commit 8000ba4

28 files changed

+278
-245
lines changed
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: "[ BUG ] - "
4+
title: '[ BUG ] - '
55
labels: bug
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
---
22
name: Enhancement request
33
about: Describe this issue template's purpose here.
4-
title: "[ Enhancement ] - "
4+
title: '[ Enhancement ] - '
55
labels: enhancement
66
assignees: ''
7-
87
---
9-
10-

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: "[ Feature ] - "
4+
title: '[ Feature ] - '
55
labels: feature
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/config.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
21
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
32

43
# Comment to be posted to on first time issues
54
newIssueWelcomeComment: >
6-
Thanks for opening your first issue here! We will get look into this.
5+
Thanks for opening your first issue here! We will get look into this.
76
87
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
98

109
# Comment to be posted to on PRs from first time contributors in your repository
1110
newPRWelcomeComment: >
12-
Thanks for opening this pull request! Please check out our [contributing guidelines](https://quip.com/7OtsAy94piU7).
11+
Thanks for opening this pull request! Please check out our [contributing guidelines](https://quip.com/7OtsAy94piU7).
1312
1413
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
1514

1615
# Comment to be posted to on pull requests merged by a first time user
1716
firstPRMergeComment: >
18-
Congrats on merging your first pull request! We here at SarveshGithub are proud of you!
17+
Congrats on merging your first pull request! We here at SarveshGithub are proud of you!
1918
2019
# It is recommended to include as many gifs and emojis as possible!

.github/pull_request_template.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ Fixes # (issue)
88

99
Please delete options that are not relevant.
1010

11-
- [ ] Bug fix (non-breaking change which fixes an issue)
12-
- [ ] New feature (non-breaking change which adds functionality)
13-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14-
- [ ] This change requires a documentation update
11+
- [ ] Bug fix (non-breaking change which fixes an issue)
12+
- [ ] New feature (non-breaking change which adds functionality)
13+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14+
- [ ] This change requires a documentation update
1515

1616
# How Has This Been Tested?
1717

1818
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
1919

20-
- [ ] Test A
21-
- [ ] Test B
20+
- [ ] Test A
21+
- [ ] Test B
2222

2323
# Checklist:
2424

25-
- [ ] My code follows the style guidelines of this project
26-
- [ ] I have performed a self-review of my own code
27-
- [ ] I have commented my code, particularly in hard-to-understand areas
28-
- [ ] I have made corresponding changes to the documentation
29-
- [ ] My changes generate no new warnings
30-
- [ ] I have added tests that prove my fix is effective or that my feature works
31-
- [ ] New and existing unit tests pass locally with my changes
25+
- [ ] My code follows the style guidelines of this project
26+
- [ ] I have performed a self-review of my own code
27+
- [ ] I have commented my code, particularly in hard-to-understand areas
28+
- [ ] I have made corresponding changes to the documentation
29+
- [ ] My changes generate no new warnings
30+
- [ ] I have added tests that prove my fix is effective or that my feature works
31+
- [ ] New and existing unit tests pass locally with my changes

.github/workflows/Pull Request Action.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,41 @@ jobs:
77
create-pull-request:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Check if PR exists
11-
id: check
12-
run: |
13-
prs=$(gh pr list --repo "$GITHUB_REPOSITORY" \
14-
--json baseRefName,headRefName \
15-
--jq '
16-
map(select(.baseRefName == "master" and .headRefName == "dev"))
17-
| length
18-
')
19-
if ((prs > 0)); then
20-
echo "::set-output name=skip::true"
21-
fi
22-
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
- name: Check if PR exists
11+
id: check
12+
run: |
13+
prs=$(gh pr list --repo "$GITHUB_REPOSITORY" \
14+
--json baseRefName,headRefName \
15+
--jq '
16+
map(select(.baseRefName == "master" and .headRefName == "dev"))
17+
| length
18+
')
19+
if ((prs > 0)); then
20+
echo "::set-output name=skip::true"
21+
fi
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424

25-
- name: Create pull request
26-
if: steps.check.outputs.skip != 'true'
27-
uses: actions/github-script@v6
28-
with:
29-
script: |
30-
const { repo, owner } = context.repo;
31-
const result = await github.rest.pulls.create({
32-
title: 'Master Sync : Auto Generated PR',
33-
owner,
34-
repo,
35-
head: '${{ github.ref_name }}',
36-
base: 'master',
37-
body: [
38-
'This PR is auto-generated by',
39-
'[actions/github-script](https://github.com/actions/github-script).'
40-
].join('\n')
41-
});
42-
github.rest.issues.addLabels({
43-
owner,
44-
repo,
45-
issue_number: result.data.number,
46-
labels: ['feature', 'automated pr']
47-
});
25+
- name: Create pull request
26+
if: steps.check.outputs.skip != 'true'
27+
uses: actions/github-script@v6
28+
with:
29+
script: |
30+
const { repo, owner } = context.repo;
31+
const result = await github.rest.pulls.create({
32+
title: 'Master Sync : Auto Generated PR',
33+
owner,
34+
repo,
35+
head: '${{ github.ref_name }}',
36+
base: 'master',
37+
body: [
38+
'This PR is auto-generated by',
39+
'[actions/github-script](https://github.com/actions/github-script).'
40+
].join('\n')
41+
});
42+
github.rest.issues.addLabels({
43+
owner,
44+
repo,
45+
issue_number: result.data.number,
46+
labels: ['feature', 'automated pr']
47+
});

.github/workflows/master_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1
3737
echo "$HOME/sfdx/bin" >> $GITHUB_PATH
3838
~/sfdx/bin/sfdx version
39-
39+
4040
# Install java as it is required for the next step
4141
# - name: 'Installing java'
4242
# run: sudo apt-get install openjdk-8-jdk

CODE_OF_CONDUCT.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
26-
overall community
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the
26+
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
30+
- The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
3838

3939
## Enforcement Responsibilities
4040

@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

CONTRIBUTING.md

Lines changed: 50 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,53 @@
11
Contribution Guidelines
22

3-
* Identifying or setting Engineering standards
4-
* small as variable naming conventions
5-
* General
6-
* Names to be meaningful
7-
* Classes
8-
* try to avoid ‘name collisions’ ie: NotificationManager - this collides with a system provided class
9-
* Must be meaningful.
10-
* No classes named Test.
11-
* conventions?
12-
* Test classes for instance, CLASSNAMETest
13-
* One test class per class
14-
* for Visualforce
15-
* controller vfpageController
16-
* extension vfpageExtension
17-
* Variables
18-
* variable name have to be at least 3 characters
19-
* should be descriptive
20-
*
21-
* Methods
22-
* start with a verb?
23-
* extend into testing
24-
* Tests have to exist
25-
* Tests have to pass before merge
26-
* Test all logical paths, nulls, empty strings, lists, collections.
27-
* feature pressure can delay test development, so tests are part of the feature!
28-
* if you can test it, you should.
29-
* comments!
30-
* YES write comments. write WHY comments, not what?
31-
* code smells
32-
* code length
33-
* Standard is loose - based on methods should do one thing.
34-
* is it testable? does the method name make sense? does it do one thing?
35-
* Rule of 9? 9 lines in a method, 9 methods in a class etc.
36-
* Heuristics:
37-
* methods should fit on one screen
38-
* classes - should be focused on one thing
39-
* order of info in a class: Class variables, constants, and Constructors, then public then private methods
40-
* Simplifying conditionals and code length
41-
* code quality
42-
* no features without tests
43-
* peer review? / code review
44-
* No one likes to hear their baby’s ugly
45-
* Per project?
46-
* a standard is a foundation for the project: applied at beginning, or retroactively
47-
* What can be automated, standards wise?
48-
* Tooling: PMD, Prettier, etc.
49-
* Can be revisited / refactored, but not necessarily mid-work.
50-
* Laying them out vs. enforcing.
3+
- Identifying or setting Engineering standards
514

52-
Credit : https://quip.com/ViKfAetuWBir
5+
- small as variable naming conventions
6+
- General
7+
- Names to be meaningful
8+
- Classes
9+
- try to avoid ‘name collisions’ ie: NotificationManager - this collides with a system provided class
10+
- Must be meaningful.
11+
- No classes named Test.
12+
- conventions?
13+
- Test classes for instance, CLASSNAMETest
14+
- One test class per class
15+
- for Visualforce
16+
- controller vfpageController
17+
- extension vfpageExtension
18+
- Variables
19+
- variable name have to be at least 3 characters
20+
- should be descriptive
21+
-
22+
- Methods
23+
- start with a verb?
24+
- extend into testing
25+
- Tests have to exist
26+
- Tests have to pass before merge
27+
- Test all logical paths, nulls, empty strings, lists, collections.
28+
- feature pressure can delay test development, so tests are part of the feature!
29+
- if you can test it, you should.
30+
- comments!
31+
- YES write comments. write WHY comments, not what?
32+
- code smells
33+
- code length
34+
- Standard is loose - based on methods should do one thing.
35+
- is it testable? does the method name make sense? does it do one thing?
36+
- Rule of 9? 9 lines in a method, 9 methods in a class etc.
37+
- Heuristics:
38+
- methods should fit on one screen
39+
- classes - should be focused on one thing
40+
- order of info in a class: Class variables, constants, and Constructors, then public then private methods
41+
- Simplifying conditionals and code length
42+
- code quality
43+
- no features without tests
44+
- peer review? / code review
45+
- No one likes to hear their baby’s ugly
46+
- Per project?
47+
- a standard is a foundation for the project: applied at beginning, or retroactively
48+
- What can be automated, standards wise?
49+
- Tooling: PMD, Prettier, etc.
50+
- Can be revisited / refactored, but not necessarily mid-work.
51+
- Laying them out vs. enforcing.
52+
53+
Credit : https://quip.com/ViKfAetuWBir

0 commit comments

Comments
 (0)