├── .ct.yaml ├── .gitattributes ├── .github ├── dependabot.yml └── workflows │ ├── build-images.yml │ ├── chart.yml │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .rustfmt.toml ├── ADOPTERS.md ├── CONTRIBUTING.md ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── GOVERNANCE.md ├── LICENSE ├── OWNERS ├── README.md ├── charts └── gitvote │ ├── .helmignore │ ├── Chart.yaml │ ├── LICENSE │ ├── README.md │ ├── charts │ └── postgresql-8.2.1.tgz │ ├── ci │ └── default-values.yaml │ ├── templates │ ├── _helpers.tpl │ ├── dbmigrator_job.yaml │ ├── dbmigrator_secret.yaml │ ├── gitvote_deployment.yaml │ ├── gitvote_ingress.yaml │ ├── gitvote_secret.yaml │ ├── gitvote_service.yaml │ └── gitvote_serviceaccount.yaml │ └── values.yaml ├── database └── migrations │ ├── Dockerfile │ ├── functions │ ├── 001_load_functions.sql │ └── util │ │ └── string_to_interval.sql │ ├── migrate.sh │ └── schema │ ├── 001_initial.sql │ ├── 002_checked_at.sql │ ├── 003_issue_title.sql │ └── 004_update_results.sql ├── docs ├── config │ └── .gitvote.yml ├── logo │ ├── logo.png │ └── logo.svg └── screenshots │ ├── check-passed.png │ ├── create-vote.png │ ├── vote-cancelled.png │ ├── vote-closed.png │ ├── vote-created.png │ └── vote-status.png ├── src ├── cfg_repo.rs ├── cfg_svc.rs ├── cmd.rs ├── db.rs ├── github.rs ├── graphql │ ├── announcement_repo_query.graphql │ ├── create_discussion.graphql │ └── github_schema.graphql ├── handlers.rs ├── main.rs ├── processor.rs ├── results.rs ├── testdata │ ├── config-invalid.yml │ ├── config.yml │ ├── event-cmd-profile.json │ ├── event-cmd.json │ ├── event-no-cmd.json │ ├── event-pr-no-cmd.json │ └── templates │ │ ├── config-not-found.golden │ │ ├── config-profile-not-found.golden │ │ ├── invalid-config.golden │ │ ├── no-vote-in-progress-issue.golden │ │ ├── no-vote-in-progress-pr.golden │ │ ├── vote-cancelled-issue.golden │ │ ├── vote-cancelled-pr.golden │ │ ├── vote-checked-recently.golden │ │ ├── vote-closed-announcement.golden │ │ ├── vote-closed-failed.golden │ │ ├── vote-closed-passed.golden │ │ ├── vote-created-all-collaborators.golden │ │ ├── vote-created-with-teams-and-users.golden │ │ ├── vote-in-progress-issue.golden │ │ ├── vote-in-progress-pr.golden │ │ ├── vote-restricted.golden │ │ └── vote-status-in-progress.golden ├── testutil.rs └── tmpl.rs └── templates ├── audit.html ├── config-not-found.md ├── config-profile-not-found.md ├── index.html ├── invalid-config.md ├── no-vote-in-progress.md ├── vote-cancelled.md ├── vote-checked-recently.md ├── vote-closed-announcement.md ├── vote-closed.md ├── vote-created.md ├── vote-in-progress.md ├── vote-restricted.md └── vote-status.md /.ct.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/.ct.yaml -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | templates/* -linguist-detectable 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/build-images.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/.github/workflows/build-images.yml -------------------------------------------------------------------------------- /.github/workflows/chart.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/.github/workflows/chart.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/.gitignore -------------------------------------------------------------------------------- /.rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/.rustfmt.toml -------------------------------------------------------------------------------- /ADOPTERS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/ADOPTERS.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/Dockerfile -------------------------------------------------------------------------------- /GOVERNANCE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/GOVERNANCE.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/LICENSE -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/OWNERS -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/README.md -------------------------------------------------------------------------------- /charts/gitvote/.helmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/.helmignore -------------------------------------------------------------------------------- /charts/gitvote/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/Chart.yaml -------------------------------------------------------------------------------- /charts/gitvote/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/LICENSE -------------------------------------------------------------------------------- /charts/gitvote/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/README.md -------------------------------------------------------------------------------- /charts/gitvote/charts/postgresql-8.2.1.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/charts/postgresql-8.2.1.tgz -------------------------------------------------------------------------------- /charts/gitvote/ci/default-values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/ci/default-values.yaml -------------------------------------------------------------------------------- /charts/gitvote/templates/_helpers.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/templates/_helpers.tpl -------------------------------------------------------------------------------- /charts/gitvote/templates/dbmigrator_job.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/templates/dbmigrator_job.yaml -------------------------------------------------------------------------------- /charts/gitvote/templates/dbmigrator_secret.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/templates/dbmigrator_secret.yaml -------------------------------------------------------------------------------- /charts/gitvote/templates/gitvote_deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/templates/gitvote_deployment.yaml -------------------------------------------------------------------------------- /charts/gitvote/templates/gitvote_ingress.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/templates/gitvote_ingress.yaml -------------------------------------------------------------------------------- /charts/gitvote/templates/gitvote_secret.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/templates/gitvote_secret.yaml -------------------------------------------------------------------------------- /charts/gitvote/templates/gitvote_service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/templates/gitvote_service.yaml -------------------------------------------------------------------------------- /charts/gitvote/templates/gitvote_serviceaccount.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/templates/gitvote_serviceaccount.yaml -------------------------------------------------------------------------------- /charts/gitvote/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/charts/gitvote/values.yaml -------------------------------------------------------------------------------- /database/migrations/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/database/migrations/Dockerfile -------------------------------------------------------------------------------- /database/migrations/functions/001_load_functions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/database/migrations/functions/001_load_functions.sql -------------------------------------------------------------------------------- /database/migrations/functions/util/string_to_interval.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/database/migrations/functions/util/string_to_interval.sql -------------------------------------------------------------------------------- /database/migrations/migrate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/database/migrations/migrate.sh -------------------------------------------------------------------------------- /database/migrations/schema/001_initial.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/database/migrations/schema/001_initial.sql -------------------------------------------------------------------------------- /database/migrations/schema/002_checked_at.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/database/migrations/schema/002_checked_at.sql -------------------------------------------------------------------------------- /database/migrations/schema/003_issue_title.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/database/migrations/schema/003_issue_title.sql -------------------------------------------------------------------------------- /database/migrations/schema/004_update_results.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/database/migrations/schema/004_update_results.sql -------------------------------------------------------------------------------- /docs/config/.gitvote.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/docs/config/.gitvote.yml -------------------------------------------------------------------------------- /docs/logo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/docs/logo/logo.png -------------------------------------------------------------------------------- /docs/logo/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/docs/logo/logo.svg -------------------------------------------------------------------------------- /docs/screenshots/check-passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/docs/screenshots/check-passed.png -------------------------------------------------------------------------------- /docs/screenshots/create-vote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/docs/screenshots/create-vote.png -------------------------------------------------------------------------------- /docs/screenshots/vote-cancelled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/docs/screenshots/vote-cancelled.png -------------------------------------------------------------------------------- /docs/screenshots/vote-closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/docs/screenshots/vote-closed.png -------------------------------------------------------------------------------- /docs/screenshots/vote-created.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/docs/screenshots/vote-created.png -------------------------------------------------------------------------------- /docs/screenshots/vote-status.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/docs/screenshots/vote-status.png -------------------------------------------------------------------------------- /src/cfg_repo.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/cfg_repo.rs -------------------------------------------------------------------------------- /src/cfg_svc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/cfg_svc.rs -------------------------------------------------------------------------------- /src/cmd.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/cmd.rs -------------------------------------------------------------------------------- /src/db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/db.rs -------------------------------------------------------------------------------- /src/github.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/github.rs -------------------------------------------------------------------------------- /src/graphql/announcement_repo_query.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/graphql/announcement_repo_query.graphql -------------------------------------------------------------------------------- /src/graphql/create_discussion.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/graphql/create_discussion.graphql -------------------------------------------------------------------------------- /src/graphql/github_schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/graphql/github_schema.graphql -------------------------------------------------------------------------------- /src/handlers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/handlers.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/processor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/processor.rs -------------------------------------------------------------------------------- /src/results.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/results.rs -------------------------------------------------------------------------------- /src/testdata/config-invalid.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/config-invalid.yml -------------------------------------------------------------------------------- /src/testdata/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/config.yml -------------------------------------------------------------------------------- /src/testdata/event-cmd-profile.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/event-cmd-profile.json -------------------------------------------------------------------------------- /src/testdata/event-cmd.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/event-cmd.json -------------------------------------------------------------------------------- /src/testdata/event-no-cmd.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/event-no-cmd.json -------------------------------------------------------------------------------- /src/testdata/event-pr-no-cmd.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/event-pr-no-cmd.json -------------------------------------------------------------------------------- /src/testdata/templates/config-not-found.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/config-not-found.golden -------------------------------------------------------------------------------- /src/testdata/templates/config-profile-not-found.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/config-profile-not-found.golden -------------------------------------------------------------------------------- /src/testdata/templates/invalid-config.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/invalid-config.golden -------------------------------------------------------------------------------- /src/testdata/templates/no-vote-in-progress-issue.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/no-vote-in-progress-issue.golden -------------------------------------------------------------------------------- /src/testdata/templates/no-vote-in-progress-pr.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/no-vote-in-progress-pr.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-cancelled-issue.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-cancelled-issue.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-cancelled-pr.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-cancelled-pr.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-checked-recently.golden: -------------------------------------------------------------------------------- 1 | Votes can only be checked once a day. -------------------------------------------------------------------------------- /src/testdata/templates/vote-closed-announcement.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-closed-announcement.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-closed-failed.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-closed-failed.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-closed-passed.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-closed-passed.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-created-all-collaborators.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-created-all-collaborators.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-created-with-teams-and-users.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-created-with-teams-and-users.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-in-progress-issue.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-in-progress-issue.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-in-progress-pr.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-in-progress-pr.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-restricted.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-restricted.golden -------------------------------------------------------------------------------- /src/testdata/templates/vote-status-in-progress.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testdata/templates/vote-status-in-progress.golden -------------------------------------------------------------------------------- /src/testutil.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/testutil.rs -------------------------------------------------------------------------------- /src/tmpl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/src/tmpl.rs -------------------------------------------------------------------------------- /templates/audit.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/audit.html -------------------------------------------------------------------------------- /templates/config-not-found.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/config-not-found.md -------------------------------------------------------------------------------- /templates/config-profile-not-found.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/config-profile-not-found.md -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/index.html -------------------------------------------------------------------------------- /templates/invalid-config.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/invalid-config.md -------------------------------------------------------------------------------- /templates/no-vote-in-progress.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/no-vote-in-progress.md -------------------------------------------------------------------------------- /templates/vote-cancelled.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/vote-cancelled.md -------------------------------------------------------------------------------- /templates/vote-checked-recently.md: -------------------------------------------------------------------------------- 1 | Votes can only be checked once a day. 2 | -------------------------------------------------------------------------------- /templates/vote-closed-announcement.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/vote-closed-announcement.md -------------------------------------------------------------------------------- /templates/vote-closed.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/vote-closed.md -------------------------------------------------------------------------------- /templates/vote-created.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/vote-created.md -------------------------------------------------------------------------------- /templates/vote-in-progress.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/vote-in-progress.md -------------------------------------------------------------------------------- /templates/vote-restricted.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/vote-restricted.md -------------------------------------------------------------------------------- /templates/vote-status.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cncf/gitvote/HEAD/templates/vote-status.md --------------------------------------------------------------------------------