Skip to content

Commit dfc6706

Browse files
authored
Merge pull request #10 from asaasdev/BASE-2453-Atualizar-java_nfe-para-a-versão-v4.00.18---13/05/2022---Schemas-PL.009i
BASE-2453 - Sincronizado métodos da NFe A3 para a nova versão da java_nfe
2 parents 4b5b8a9 + 9825d27 commit dfc6706

19 files changed

+718
-456
lines changed

.github/mergeable.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: 2
2+
mergeable:
3+
- when: pull_request.*
4+
validate:
5+
- do: label
6+
must_exclude:
7+
regex: 'não fazer merge'
8+
pass:
9+
- do: checks
10+
status: 'success'
11+
fail:
12+
- do: checks
13+
status: 'failure'
14+
15+
- when: pull_request.opened, pull_request.edited
16+
validate:
17+
- do: baseRef
18+
must_exclude:
19+
regex: "master|release"
20+
- do: description
21+
must_exclude:
22+
regex: "https://github.com/asaasdev/asaas/pull/|#[0-9]"
23+
pass:
24+
- do: comment
25+
payload:
26+
body: Adicione um link para o PR Predecessora na descrição do PR
27+
28+
- when: pull_request.opened, pull_request.edited
29+
validate:
30+
- do: baseRef
31+
must_include:
32+
regex: "master|release"
33+
pass:
34+
- do: labels
35+
delete: "aguardando outro PR"
36+
fail:
37+
- do: labels
38+
add: "aguardando outro PR"
39+
40+
- when: pull_request.opened, pull_request.edited, pull_request.labeled
41+
validate:
42+
- do: label
43+
must_include:
44+
regex: "hotfix"
45+
- do: baseRef
46+
must_exclude:
47+
regex: "master"
48+
pass:
49+
- do: comment
50+
payload:
51+
body: Um hotfix deve conter a label 'hotfix' e ter como destino a 'master' - Saiba mais em nosso [livro de elite](https://github.com/asaasdev/livro-de-elite/blob/master/processes/asaas.md#liberacao-hotfix).
52+
53+
- when: pull_request.labeled
54+
validate:
55+
- do: label
56+
must_include:
57+
regex: 'não fazer merge'
58+
pass:
59+
- do: comment
60+
payload:
61+
body: Deixe um comentário explicando o que está impedindo o merge da PR.

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Descrição
2+
3+
### PR Relacionadas
4+
5+
### Link da tarefa no JIRA
6+
7+
### Serviços afetados
8+
9+
### Prints do desenvolvimento

.github/release-drafter.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name-template: 'Release v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
version-template: '$MAJOR.$MINOR'
4+
exclude-labels:
5+
- 'hotfix'
6+
filter-by-commitsh: true
7+
categories:
8+
- title: 'API'
9+
label: 'api'
10+
- title: 'JSF'
11+
label: 'jsf'
12+
- title: 'Agendamentos'
13+
label: 'agendamento'
14+
- title: 'Criar Conta'
15+
label: 'criarconta'
16+
- title: 'Controle Versão'
17+
label: 'controleversao'
18+
- title: 'Cobrança Alerta'
19+
label: 'cobrancaalerta'
20+
- title: 'Cobrança Email'
21+
label: 'cobrancaemail'
22+
- title: 'Email Enviar'
23+
label: 'emailenviar'
24+
- title: 'Integração Asaas'
25+
label: 'integracaoasaas'
26+
- title: 'Integração Importar'
27+
label: 'integracaoimportar'
28+
- title: 'Integração OList'
29+
label: 'integracaoolist'
30+
- title: 'Integração PJ Bank'
31+
label: 'integracaopjbank'
32+
- title: 'JOBs'
33+
label: 'jobs'
34+
- title: 'Modelo Spring'
35+
label: 'modelospring'
36+
- title: 'NFe API'
37+
label: 'nfeapi'
38+
- title: 'NFe Integração'
39+
label: 'nfeintegracao'
40+
- title: 'Relatórios Jasper'
41+
label: 'relatoriosjasper'
42+
- title: 'SPED'
43+
label: 'sped'
44+
- title: 'Nova Arquitetura'
45+
label: 'novaarquitetura'
46+
- title: 'DevOps'
47+
label: 'devops'
48+
- title: 'Dependências'
49+
label: 'dependencies'
50+
- title: 'Documentação'
51+
label: 'documentation'
52+
- title: 'Chamados'
53+
label: 'chamado'
54+
- title: 'Merge to Release'
55+
label: 'merge.to.release'
56+
- title: 'Merge to Master'
57+
label: 'merge.to.master'
58+
- title: 'Produto'
59+
label: 'produto'
60+
version-resolver:
61+
major:
62+
labels:
63+
- 'major'
64+
minor:
65+
labels:
66+
- 'minor'
67+
patch:
68+
labels:
69+
- 'patch'
70+
default: 'major'
71+
no-changes-template: 'Em desenvolvimento ![loading](https://www.asaas.com/assets/loading.gif)'
72+
change-template: '#$NUMBER | $TITLE @$AUTHOR'
73+
template: |
74+
## Alterações
75+
$CHANGES

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- release
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
17+
- name: Set up JDK 8
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 8
21+
- name: Cache SonarCloud packages
22+
uses: actions/cache@v1
23+
with:
24+
path: ~/.sonar/cache
25+
key: ${{ runner.os }}-sonar
26+
restore-keys: ${{ runner.os }}-sonar
27+
- name: Cache Maven packages
28+
uses: actions/cache@v3
29+
with:
30+
path: ~/.m2/repository
31+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: ${{ runner.os }}-m2-
33+
- name: Build
34+
run: mvn -B test

.github/workflows/checkstyle.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: checkstyle
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- release
8+
paths:
9+
- '**.java'
10+
workflow_dispatch:
11+
12+
jobs:
13+
checkstyle:
14+
name: checkstyle
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/[email protected]
20+
21+
- name: Run checkstyle
22+
uses: asaasdev/checkstyle-action@v1
23+
with:
24+
github_token: ${{ secrets.github_token }}
25+
reporter: github-pr-review
26+
configuration_file: 'erp-checkstyle.xml'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Descrição
2+
3+
### PR Relacionadas
4+
5+
### Link da tarefa no JIRA
6+
7+
### Serviços afetados
8+
9+
### Prints do desenvolvimento
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- release
7+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: release-drafter/[email protected]
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)