Skip to content

Commit 98af9c8

Browse files
committed
Update Readme and Templates (#37)
* Update Readme and template * Update
1 parent 35234ba commit 98af9c8

File tree

6 files changed

+47
-57
lines changed

6 files changed

+47
-57
lines changed

.github/pull_request_template.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
### Issue
2+
*Link your PR to an issue*
3+
4+
Fixes #___
5+
6+
### Description
7+
*Please describe your pull request.*
8+
9+
### Testing
10+
*Describe the best way to test or validate your PR.*
11+
112
### Checklist
213
🚨Please review the [guidelines for contributing](../CONTRIBUTING.md) to this repository.
314

@@ -11,8 +22,4 @@
1122
- [ ]**AVOID** breaking the continuous integration build.
1223
- [ ]**AVOID** making significant changes to the overall architecture.
1324

14-
15-
### Description
16-
Please describe your pull request.
17-
1825
💔Thank you!

.postman/postman_environment.local.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
{
4141
"key": "election",
42-
"value": "{\n \"title\": \"Spring Primary\",\n \"state\": \"State of Wisconsin\",\n \"county\": {\n \"id\": \"1\",\n \"name\": \"Rock County\"\n },\n \"date\": \"February 6th, 2020\",\n \"parties\": [\n {\n \"id\": \"0\",\n \"name\": \"Non-Partisan\",\n \"abbrev\": \"NP\"\n },\n {\n \"id\": \"1\",\n \"name\": \"Democrat\",\n \"abbrev\": \"D\"\n },\n {\n \"id\": \"2\",\n \"name\": \"Republican\",\n \"abbrev\": \"R\"\n }\n ],\n \"precincts\": [\n {\n \"id\": \"1\",\n \"name\": \"Fulton Town Hall\"\n }\n ],\n \"contests\": [\n {\n \"id\": \"justice-supreme-court\",\n \"section\": \"Judicial\",\n \"districtId\": \"1\",\n \"type\": \"candidate\",\n \"official_label\": \"Justice of the Supreme Court\",\n \"title\": \"Justice of the Supreme Court\",\n \"seats\": 1,\n \"allowWriteIns\": true,\n \"candidates\": [\n {\n \"id\": \"laurel-clark\",\n \"name\": \"Laurel Clark\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"les-paul\",\n \"name\": \"Les Paul\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"georgia-okeeffe\",\n \"name\": \"Georgia O'Keeffe\",\n\t \"partyId\": \"0\"\n }\n ]\n },\n {\n \"id\": \"referendum-michigan-up\",\n \"section\": \"Referenda\",\n \"districtId\": \"2\",\n \"type\": \"yesno\",\n \"short_title\": \"The Michigan Question\",\n \"title\": \"Proposition M: The Michigan Question\",\n \"description\": \"Should the State of Wisconsin purchase, from the State of Michigan, the Upper Peninsula, for the purchase price of $1 Billion?\"\n },\n {\n \"id\": \"milton-school-board\",\n \"section\": \"Milton School District\",\n \"districtId\": \"3\",\n \"type\": \"candidate\",\n \"title\": \"School Board Member\",\n \"seats\": 2,\n \"allowWriteIns\": true,\n \"candidates\": [\n {\n \"id\": \"jim-lovell\",\n \"name\": \"Jim Lovell\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"william-rehnquist\",\n \"name\": \"William Rehnquist\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"debbie-mccormick\",\n \"name\": \"Debbie McCormick\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"clyde-stubblefield\",\n \"name\": \"Clyde Stubblefield\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"frank-lloyd-wright\",\n \"name\": \"Frank Lloyd Wright\",\n\t \"partyId\": \"0\"\n }\n ]\n }\n ],\n \"districts\": [\n {\n \"id\": \"1\",\n \"name\": \"State Of Wisconsin\"\n },\n {\n \"id\": \"2\",\n \"name\": \"Referenda\"\n },\n {\n \"id\": \"3\",\n \"name\": \"Milton School District\"\n }\n ],\n \"ballotStyles\": [\n {\n \"id\": \"1\",\n \"precincts\": [\n \"1\"\n ],\n \"districts\": [\n \"1\",\n\t \"2\"\n ]\n },\n {\n \"id\": \"2\",\n \"precincts\": [\n \"1\"\n ],\n \"districts\": [\n \"1\",\n\t \"3\"\n ]\n }\n ],\n \"sealURL\": \"/seals/Seal_of_Wisconsin.svg\"\n}",
42+
"value": "{\n \"title\": \"Spring Primary\",\n \"state\": \"State of Hamilton\",\n \"county\": {\n \"id\": \"1\",\n \"name\": \"Boulder County\"\n },\n \"date\": \"February 6th, 2020\",\n \"parties\": [\n {\n \"id\": \"0\",\n \"name\": \"Non-Partisan\",\n \"abbrev\": \"NP\"\n },\n {\n \"id\": \"1\",\n \"name\": \"Democrat\",\n \"abbrev\": \"D\"\n },\n {\n \"id\": \"2\",\n \"name\": \"Republican\",\n \"abbrev\": \"R\"\n }\n ],\n \"precincts\": [\n {\n \"id\": \"1\",\n \"name\": \"Town Hall\"\n }\n ],\n \"contests\": [\n {\n \"id\": \"justice-supreme-court\",\n \"section\": \"Judicial\",\n \"districtId\": \"1\",\n \"type\": \"candidate\",\n \"official_label\": \"Justice of the Supreme Court\",\n \"title\": \"Justice of the Supreme Court\",\n \"seats\": 1,\n \"allowWriteIns\": true,\n \"candidates\": [\n {\n \"id\": \"laurel-clark\",\n \"name\": \"Laurel Clark\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"les-paul\",\n \"name\": \"Les Paul\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"georgia-okeeffe\",\n \"name\": \"Georgia O'Keeffe\",\n\t \"partyId\": \"0\"\n }\n ]\n },\n {\n \"id\": \"referendum-michigan-up\",\n \"section\": \"Referenda\",\n \"districtId\": \"2\",\n \"type\": \"yesno\",\n \"short_title\": \"The Michigan Question\",\n \"title\": \"Proposition M: The Michigan Question\",\n \"description\": \"Should the State of Hamilton purchase, from the State of Michigan, the Upper Peninsula, for the purchase price of $1 Billion?\"\n },\n {\n \"id\": \"milton-school-board\",\n \"section\": \"Milton School District\",\n \"districtId\": \"3\",\n \"type\": \"candidate\",\n \"title\": \"School Board Member\",\n \"seats\": 2,\n \"allowWriteIns\": true,\n \"candidates\": [\n {\n \"id\": \"jim-lovell\",\n \"name\": \"Jim Lovell\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"william-rehnquist\",\n \"name\": \"William Rehnquist\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"debbie-mccormick\",\n \"name\": \"Debbie McCormick\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"clyde-stubblefield\",\n \"name\": \"Clyde Stubblefield\",\n\t \"partyId\": \"0\"\n },\n {\n \"id\": \"frank-lloyd-wright\",\n \"name\": \"Frank Lloyd Wright\",\n\t \"partyId\": \"0\"\n }\n ]\n }\n ],\n \"districts\": [\n {\n \"id\": \"1\",\n \"name\": \"State Of Hamilton\"\n },\n {\n \"id\": \"2\",\n \"name\": \"Referenda\"\n },\n {\n \"id\": \"3\",\n \"name\": \"Milton School District\"\n }\n ],\n \"ballotStyles\": [\n {\n \"id\": \"1\",\n \"precincts\": [\n \"1\"\n ],\n \"districts\": [\n \"1\",\n\t \"2\"\n ]\n },\n {\n \"id\": \"2\",\n \"precincts\": [\n \"1\"\n ],\n \"districts\": [\n \"1\",\n\t \"3\"\n ]\n }\n ],\n \"sealURL\": \"/seals/Seal_of_Wisconsin.svg\"\n}",
4343
"enabled": true
4444
},
4545
{

CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Contributing
2+
3+
This project welcomes contributions and suggestions. Most contributions require
4+
you to agree to a Contributor License Agreement (CLA) declaring that you have
5+
the right to, and actually do, grant us the rights to use your contribution. For
6+
details, visit https://cla.opensource.microsoft.com.
7+
8+
When you submit a pull request, a CLA bot will automatically determine whether
9+
you need to provide a CLA and decorate the PR appropriately (e.g., status check,
10+
comment). Simply follow the instructions provided by the bot. You will only need
11+
to do this once across all repos using our CLA.
12+
13+
This project has adopted the
14+
[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
15+
For more information see the
16+
[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
17+
contact [[email protected]](mailto:[email protected]) with any
18+
additional questions or comments.

README.md

Lines changed: 12 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,11 @@
1-
---
2-
page_type: sample
3-
languages:
4-
- csharp
5-
products:
6-
- dotnet
7-
description: "Add 150 character max description"
8-
urlFragment: "update-this-to-unique-url-stub"
9-
---
10-
11-
# Official Microsoft Sample
1+
![Microsoft Defending Democracy Program: ElectionGuard](images/electionguard-banner.svg)
122

13-
<!--
14-
Guidelines on README format: https://review.docs.microsoft.com/help/onboard/admin/samples/concepts/readme-template?branch=master
15-
16-
Guidance on onboarding samples to docs.microsoft.com/samples: https://review.docs.microsoft.com/help/onboard/admin/samples/process/onboarding?branch=master
17-
18-
Taxonomies for products and languages: https://review.docs.microsoft.com/new-hope/information-architecture/metadata/taxonomies?branch=master
19-
-->
20-
21-
Give a short description for your sample here. What does it do and why is it important?
22-
23-
## Contents
24-
25-
Outline the file contents of the repository. It helps users navigate the codebase, build configuration and any related assets.
3+
# 🗳️ ElectionGuard Web API
264

27-
| File/folder | Description |
28-
|-------------------|--------------------------------------------|
29-
| `src` | Sample source code. |
30-
| `.gitignore` | Define what to ignore at commit time. |
31-
| `CHANGELOG.md` | List of changes to the sample. |
32-
| `CONTRIBUTING.md` | Guidelines for contributing to the sample. |
33-
| `README.md` | This README file. |
34-
| `LICENSE` | The license for the sample. |
5+
![package](https://github.com/microsoft/electionguard-web-api/workflows/Package/badge.svg)
6+
[![license](https://img.shields.io/github/license/microsoft/electionguard-web-api)](LICENSE)
357

36-
## Prerequisites
37-
38-
Outline the required components and tools that a user might need to have on their machine in order to run the sample. This can be anything from frameworks, SDKs, OS versions or IDE releases.
39-
40-
## Setup
41-
42-
Explain how to prepare the sample once the user clones or downloads the repository. The section should outline every step necessary to install dependencies and set up any settings (for example, API keys and output folders).
8+
This is an API that interacts with admin encrypter devices to perform ballot encryption, casting, spoiling, and tallying. This makes use of the C# Nuget package.
439

4410
## Runnning the sample
4511

@@ -121,15 +87,13 @@ Configuration can be provided in multiple ways
12187
3. Via `EncryptBallot` - by providing the election configuration with each encrypt ballot request, the provided values will be used to encrypt a specific ballot.
12288

12389
## Contributing
90+
Help defend democracy and [contribute to the project](CONTRIBUTING).
12491

125-
This project welcomes contributions and suggestions. Most contributions require you to agree to a
126-
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
127-
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
92+
<!--
93+
Guidelines on README format: https://review.docs.microsoft.com/help/onboard/admin/samples/concepts/readme-template?branch=master
12894
129-
When you submit a pull request, a CLA bot will automatically determine whether you need to provide
130-
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
131-
provided by the bot. You will only need to do this once across all repos using our CLA.
95+
Guidance on onboarding samples to docs.microsoft.com/samples: https://review.docs.microsoft.com/help/onboard/admin/samples/process/onboarding?branch=master
96+
97+
Taxonomies for products and languages: https://review.docs.microsoft.com/new-hope/information-architecture/metadata/taxonomies?branch=master
98+
-->
13299

133-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
134-
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
135-
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

data/election.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"county": {
2525
"id": "1",
26-
"name": "Rock County"
26+
"name": "Boulder County"
2727
},
2828
"parties": [
2929
{
@@ -45,13 +45,13 @@
4545
"precincts": [
4646
{
4747
"id": "1",
48-
"name": "Fulton Town Hall"
48+
"name": "Town Hall"
4949
}
5050
],
5151
"districts": [
5252
{
5353
"id": "1",
54-
"name": "State Of Wisconsin"
54+
"name": "State Of Hamilton"
5555
},
5656
{
5757
"id": "2",
@@ -90,7 +90,7 @@
9090
"type": 1
9191
},
9292
{
93-
"description": "Should the State of Wisconsin purchase, from the State of Michigan, the Upper Peninsula, for the purchase price of $1 Billion?",
93+
"description": "Should the State of Hamilton purchase, from the State of Michigan, the Upper Peninsula, for the purchase price of $1 Billion?",
9494
"id": "referendum-michigan-up",
9595
"districtId": "2",
9696
"section": "Referenda",

images/electionguard-banner.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)