Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into decks-support
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviortheking committed Nov 9, 2021
2 parents 1f4f1fe + fa6322a commit 54ac83b
Show file tree
Hide file tree
Showing 2,089 changed files with 26,646 additions and 7,525 deletions.
53 changes: 53 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"badgeTemplate": "<a href=\"#contributors-\"><img src=\"https://img.shields.io/badge/all_contributors-<%= contributors.length %>-orange.svg?style=flat-square\" alt=\"All Contributors Badge\" /></a>",
"contributors": [
{
"login": "Aviortheking",
"name": "Avior",
"avatar_url": "https://avatars.githubusercontent.com/u/15822031?v=4",
"profile": "https://www.avior.me/",
"contributions": [
"code",
"data"
]
},
{
"login": "JuneTwooo",
"name": "June",
"avatar_url": "https://avatars.githubusercontent.com/u/1458019?v=4",
"profile": "https://github.com/JuneTwooo",
"contributions": [
"bug"
]
},
{
"login": "Kevin-Adrea",
"name": "Kevin-Adrea",
"avatar_url": "https://avatars.githubusercontent.com/u/36231620?v=4",
"profile": "https://github.com/Kevin-Adrea",
"contributions": [
"bug"
]
},
{
"login": "Maxopoly",
"name": "Maxopoly",
"avatar_url": "https://avatars.githubusercontent.com/u/12138136?v=4",
"profile": "https://github.com/Maxopoly",
"contributions": [
"data"
]
}
],
"contributorsPerLine": 7,
"projectName": "cards-database",
"projectOwner": "tcgdex",
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": true
}
22 changes: 22 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules


# misc
.DS_Store
.env*

# debug
npm-debug.log*

dist/
*.asc

/data/**/*.js


# production
/server/dist
/server/generated
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/api-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: API Issue Report
description: Use this when you found an issue involving the TCGdex Server
title: "issue:"
labels: [issue, server]
body:

- type: markdown
attributes:
value: |
Thanks for taking the time to help advance the project witg your issue report!
- type: checkboxes
id: issue-location
validations:
required: true
attributes:
label: Where are you having the issue
options:
- label: GraphQL
- label: JSON API

- type: checkboxes
id: issue-item
attributes:
label: Is the issue affecting one of the two elements below ?
options:
- label: Translations
- label: Definitions Files (Open API, GraphQL Schema, etc)

- type: textarea
id: description
attributes:
label: Description
description: What is happening
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: TCGdex Discord
url: https://discord.gg/NehYTAhsZE
about: You can post user code related issues here.
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/database-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Database Issue Report
description: Use this when you found an issue involving the TCGdex Datas
title: "issue:"
labels: [issue, database]
body:

- type: markdown
attributes:
value: |
Thanks for taking the time to help advance the project witg your issue report!
Note: if the issue is affecting translations or definitions files the correct issue report as the API one
- type: dropdown
id: data-type
validations:
required: true
attributes:
label: What seems to be the issue
description: Select the types of data that seems to be causing issues
options:
- label: Card
- label: Set
- label: Serie
- label: Other
- type: input
id: fields
attributes:
label: Field(s)
description: Tell which field(s) have the issue
placeholder: "ex: the Regulation Mark field"
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: Describe Your problem
placeholder: "ex: The cards have an incorrect name"
validations:
required: true
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/enhancement.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Enhancement
description: You have an Idea that will enhance the API, Use this issue Template!
title: "[Up]: "
labels: [project/database, project/server, project/compiler, type/enhancement]
description: Use this template if you have an Idea that will enhance the API/Database
title: "enhancement: "
labels: [enhancement]
body:
- type: markdown
attributes:
Expand All @@ -25,6 +25,6 @@ body:
attributes:
label: Please explain in more details what idea you have
description: If you selected Other or new Data Type please put it as the first line
placeholder: "Ex: I would love to see the cards have this new field..."
placeholder: "Ex: I would love to see the cards have this new awesome field..."
validations:
required: true
26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/incorrect-data.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/new-set.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: New Set
description: Use this Issue Template when you found a New set!
title: "[Set]: {Set Name}"
labels: [type/new-set, project/database]
description: Issue Template used when a new set has been announced by TPC
title: "new set: {Set Name}"
labels: [database]
body:
- type: markdown
attributes:
Expand All @@ -11,7 +11,7 @@ body:
id: source
attributes:
label: Source
description: Where did you find out about this new set
description: Where did you find out about this new set (domain name MUST be pokemon.com)
placeholder: "ex: https://www.pokemon.com/us/pokemon-tcg/sword-shield-evolving-skies/explore-and-watch/"
validations:
required: true
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!--
Thanks for your Pull Request, Please provide the related Issue using "Fix #0" or describe the change(s) you made.
The issue title must follow Conventional Commit (verified by Github Actions) conventionalcommits.org.
More informations at https://github.com/tcgdex/cards-database/blob/master/CONTRIBUTING.md
-->
21 changes: 17 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,26 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: lockfile-only
commit-message:
prefix: build

- package-ecosystem: "npm"
directory: "/server"
schedule:
interval: "daily"
versioning-strategy: lockfile-only
commit-message:
prefix: build

- package-ecosystem: "github-actions"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: build
58 changes: 58 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
push:
branches: [ master ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ master ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: tcgdex/server


jobs:
build:

runs-on: ubuntu-latest

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

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
14 changes: 14 additions & 0 deletions .github/workflows/conventionnal-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Conventionnal Commit
on: pull_request
jobs:
conventional:
name: Conventional PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: beemojs/conventional-pr-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config-preset: angular
45 changes: 0 additions & 45 deletions .github/workflows/node.js.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.js

node_modules/
dist/
Loading

0 comments on commit 54ac83b

Please sign in to comment.