Skip to content

Commit

Permalink
Merge pull request #363 from pagarme/develop
Browse files Browse the repository at this point in the history
Release 3.1.9
  • Loading branch information
mateus-picoloto authored Dec 13, 2023
2 parents 55a4836 + 155ee5b commit 306b0bb
Show file tree
Hide file tree
Showing 175 changed files with 3,788 additions and 925 deletions.
46 changes: 0 additions & 46 deletions .github/CONTRIBUTING.md

This file was deleted.

43 changes: 0 additions & 43 deletions .github/ISSUE-TEMPLATE.md

This file was deleted.

44 changes: 0 additions & 44 deletions .github/PULLREQUEST-TEMPLATE.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Bug

### Descrição
Descreva detalhadamente o bug.

### Como reproduzir
Descreva os passos para reproduzir o bug.

### Evidências
Colocar aqui as evidências do bug.

35 changes: 35 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Contribuição

Primeiramente, obrigado por dedicar seu tempo para contribuir!

### Como posso contribuir?

* Faça um fork do projeto;
* Faça suas alterações;
* Use o padrão de commits;
* Crie o pull request para a branch **develop**;

### Pull Requests

Template para os [pull requests](https://github.com/pagarme/woocommerce/blob/master/.github/pull_request_template/pull_request_template.md).

### Mensagens de commit

* As mensagens devem ser feitas em inglês
* Utilizar o [conventional commits](https://www.conventionalcommits.org/pt-br/v1.0.0/), abaixo segue alguns exemplos de explicações:

| Nomeclatura | Quando utilizar |
|--------|------------------------------------------|
| **feat:** | Para novas funcionalidades |
| **fix:** | Para correções de bugs |
| **docs:** | Para atualização de uma documentação |
| **refactor:** | Para refatoração de um código |
| **perf:** | Para mudanças que melhoram a performance |

Abaixo seguem alguns exemplos de commits:

* feat: adding function to exclude saved credit card to customer
* fix: pix qr code not showing in e-mail
* docs: adding contribution section in readme
* refactor: moving credit card javascript code to requirejs file
* perf: removing unnecessary order update when access admin order page
10 changes: 0 additions & 10 deletions .github/data/.htaccess

This file was deleted.

18 changes: 14 additions & 4 deletions .github/data/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
FROM thiagobarradas/woocommerce:3.5.3-wp5.0.2-php7.2
ARG WORDPRESS_IMAGE_VERSION=latest
FROM wordpress:$WORDPRESS_IMAGE_VERSION
MAINTAINER Open Source Team

COPY . /app/wp-content/plugins/pagarme-payments-for-woocommerce
RUN mv /app/wp-content/plugins/pagarme-payments-for-woocommerce/.htaccess /app/.htaccess
WORKDIR /var/www/html/

WORKDIR /app
RUN apt-get update \
&& apt-get install wget -y \
&& apt-get clean

RUN wget https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php -O datadog-setup.php

RUN php datadog-setup.php --php-bin=all --enable-appsec

COPY . ./wp-content

COPY plugins/pagarme-payments-for-woocommerce/.github/data/custom.ini $PHP_INI_DIR/conf.d/
4 changes: 4 additions & 0 deletions .github/data/custom.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
file_uploads = On
upload_max_filesize = 200M
post_max_size = 200M
max_execution_time = 600
40 changes: 40 additions & 0 deletions .github/data/install-zips.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

while getopts w:f:m: flag
do
case "${flag}" in
w) wcVersion=$OPTARG;;
f) wcExtraCheckoutFieldsVersion=$OPTARG;;
m) wpMailCatcherVersion=$OPTARG;;
esac
done

installZip() {
curl -L $1 -o $2
unzip $2 -d $3
rm $2
}

latestStable="latest-stable"
pluginsDir="plugins"
themesDir="themes"

wordpressDownloadUrl="https://downloads.wordpress.org"

if [[ -z "$wcVersion" ]]; then
wcVersion=$latestStable
fi

if [[ -z "$wcExtraCheckoutFieldsVersion" ]]; then
wcExtraCheckoutFieldsVersion=$latestStable
fi

if [[ -z "$wpMailCatcherVersion" ]]; then
wpMailCatcherVersion=$latestStable
fi


installZip "$wordpressDownloadUrl/plugin/woocommerce.$wcVersion.zip" "woocommerce.zip" "$pluginsDir"
installZip "$wordpressDownloadUrl/plugin/woocommerce-extra-checkout-fields-for-brazil.$wcExtraCheckoutFieldsVersion.zip" "woocommerce-extra-checkout-fields-for-brazil.zip" "$pluginsDir"
installZip "$wordpressDownloadUrl/plugin/wp-mail-catcher.$wpMailCatcherVersion.zip" "wp-mail-catcher.zip" "$pluginsDir"
installZip "$wordpressDownloadUrl/theme/storefront.$latestStable.zip" "storefront.zip" "$themesDir"
13 changes: 0 additions & 13 deletions .github/data/update-wp-config.php

This file was deleted.

4 changes: 0 additions & 4 deletions .github/data/wait-for-mysql.sh

This file was deleted.

4 changes: 4 additions & 0 deletions .github/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Nova funcionalidade

### Descrição
Descreva detalhadamente a nova funcionalidade.
8 changes: 8 additions & 0 deletions .github/pull_request_template/branches/master.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## :sparkles: New Features
-

## :bug: Bug fixes
-

## :rocket: Improvements
-
18 changes: 18 additions & 0 deletions .github/pull_request_template/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
![Git Merge](https://media.giphy.com/media/cFkiFMDg3iFoI/giphy.gif)

> [!IMPORTANT]
> Certifique-se de criar o PR para a branch **develop**.
### Qual o tipo de PR é esse? (marque todos os aplicáveis)
- [ ] Refatoração
- [ ] Adição de funcionalidade
- [ ] Correção de bug
- [ ] Otimização
- [ ] Atualização de documentação

### Descrição
Descreva brevemente as alterações feitas neste PR.


### Cenários testados
Descreva brevemente quais foram os cenários testados com as alterações feitas neste PR.
36 changes: 36 additions & 0 deletions .github/workflows/build_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: BUILD BRANCH

on:
workflow_dispatch:
inputs:
wordpress_image_version:
required: false
type: string
default: latest
woocommerce_version:
required: false
type: string
default: latest-stable
woocommerce_extra_checkout_fields_version:
required: false
type: string
default: latest-stable
wp_mail_catcher_version:
required: false
type: string
default: latest-stable
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
call-workflow-cd:
uses: pagarme/woocommerce/.github/workflows/cd_reusable.yml@master
with:
tag: ${{ GITHUB_REF#refs/heads/ }}
wordpress_image_version: ${{ inputs.wordpress_image_version }}
woocommerce_version: ${{ inputs.woocommerce_version }}
woocommerce_extra_checkout_fields_version: ${{ inputs.woocommerce_extra_checkout_fields_version }}
wp_mail_catcher_version: ${{ inputs.wp_mail_catcher_version }}
secrets:
inherit
Loading

0 comments on commit 306b0bb

Please sign in to comment.