Skip to content

Commit

Permalink
Merge pull request #3 from ggoodwin/develop
Browse files Browse the repository at this point in the history
v1.0.1
  • Loading branch information
ggoodwin authored May 24, 2023
2 parents 1a233c0 + 2e0db65 commit 50674e6
Show file tree
Hide file tree
Showing 13 changed files with 452 additions and 64 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
schedule:
- cron: "36 22 * * 5"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["go"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
32 changes: 20 additions & 12 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,32 @@ name: Go

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Code Checks
run: go vet .

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Static Checks
uses: dominikh/staticcheck-action@v1.2.0
with:
version: "2022.1.1"
run: staticcheck .

- name: Build
run: go build -v ./...
- name: Build
run: go build plugin

- name: Test
run: go test -v ./...
- name: Test
run: go test plugin
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@
go.work

# Custom
.markdownlint.json
/config.json
.vscode
7 changes: 7 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"MD010": false,
"MD013": false,
"MD024": false,
"MD033": false,
"MD041": false
}
42 changes: 17 additions & 25 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,42 @@

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog],
and this project adheres to [Semantic Versioning].
The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].

## [Unreleased]

- Will list future updates here

## [0.0.2] - 2023-01-16
## [1.0.1] - 2023-05-23

### Added
### Updated

### Changed
- Updated files to reflect new name

- Display of bot status
## [1.0.0] - 2023-05-23

### Deprecated
### Changed

### Removed
- Updated to reflect new name and to release 1.0.0

### Fixed
## [0.0.2] - 2023-01-16

### Security
### Changed

- Display of bot status

## [0.0.1] - 2023-01-16

### Added

- Core Functionality

### Changed

### Deprecated

### Removed

### Fixed

### Security

<!-- Links -->
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
[semantic versioning]: https://semver.org/spec/v2.0.0.html
[Keep a Changelog]: https://keepachangelog.com/en/1.1.0/
[Semantic Versioning]: https://semver.org/

<!-- Versions -->
[unreleased]: https://github.com/octodiscord/crypto-bot/compare/v0.0.1...MAIN
[0.0.2]: https://github.com/octodiscord/crypto-bot/compare/v0.0.1...v0.0.2
[0.0.1]: https://github.com/octodiscord/crypto-bot/releases/tag/v0.0.1
[unreleased]: https://github.com/ggoodwin/discord-crypto-bot/compare/v1.0.0...DEVELOP
[1.0.0]: https://github.com/ggoodwin/discord-crypto-bot/compare/v0.0.2...v1.0.0
[0.0.2]: https://github.com/ggoodwin/discord-crypto-bot/compare/v0.0.1...v0.0.2
[0.0.1]: https://github.com/ggoodwin/discord-crypto-bot/releases/tag/v0.0.1
131 changes: 131 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

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

Examples of unacceptable behavior include:

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

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to me at this [EMAIL] or on [TELEGRAM].
All complaints will be reviewed and investigated promptly and fairly.

I am obligated to respect the privacy and security of the reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

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

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [CONTRIBUTOR-COVENANT], [VERSION-2.0].

Community Impact Guidelines were inspired by [MOZILLA]'s code of conduct
enforcement ladder.

For answers to common questions about this code of conduct, see the [FAQ].

[TRANSLATIONS] are available.

<!-- Links -->
[TELEGRAM]: https://t.me/MessageGreg
[EMAIL]: mailto:greg@goodwin.id
[TRANSLATIONS]: https://www.contributor-covenant.org/translations
[FAQ]: https://www.contributor-covenant.org/faq
[CONTRIBUTOR-COVENANT]: https://www.contributor-covenant.org
[VERSION-2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
[MOZILLA]: https://github.com/mozilla/diversity
Loading

0 comments on commit 50674e6

Please sign in to comment.