Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream changes #2

Open
wants to merge 185 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
f42e3a7
Fix staticcheck on Go v1.18 and pin it to v2022.1
andygrunwald Apr 9, 2022
7ddae22
GitHub Actions: Switch staticcheck back to make
andygrunwald Apr 9, 2022
1998d71
GitHub Actions: Switch v2022.1 to master version of staticcheck
andygrunwald Apr 9, 2022
42f2bd2
staticcheck: Remove caching for modules and switch back to static
andygrunwald Apr 9, 2022
50be567
GitHub Actions: Upgrade staticcheck action version to v1.2.0 (#451)
andygrunwald Apr 9, 2022
9465594
Added an example of how to add a label to an issue (#442)
lucribas Apr 9, 2022
2add5a7
GitHub Actions: Remove greetings workflow (#450)
andygrunwald Apr 9, 2022
7c19ccd
chore(deps): bump actions/setup-go from 2 to 3 (#452)
dependabot[bot] Apr 11, 2022
dcc7f65
chore(deps): bump github.com/google/go-cmp from 0.5.7 to 0.5.8 (#453)
dependabot[bot] Apr 27, 2022
47d27a7
chore(deps): bump github.com/golang-jwt/jwt/v4 from 4.4.1 to 4.4.2 (#…
dependabot[bot] Jul 8, 2022
d758a3d
README: Add chapter "State of this library" (#490)
andygrunwald Aug 21, 2022
942f122
Go: Raise supported version to v1.18 (#491)
andygrunwald Aug 21, 2022
e3f4abd
README: Add chapter "Supported Jira versions" and "Official Jira API …
andygrunwald Aug 21, 2022
c6e6022
refactor: Replaced github.com/pkg/errors with errors (#460)
Fank Aug 21, 2022
de88769
Fixed unit test "TestError_NoResponse" (#493)
andygrunwald Aug 21, 2022
79149ba
GitHub Action: New workflow to label PRs when they have merge request…
andygrunwald Aug 25, 2022
af74a7b
GitHub Actions: New action to label PRs (via actions/labeler) (#497)
andygrunwald Aug 25, 2022
75d07fb
Fix branch for unit tests
andygrunwald Aug 25, 2022
6999a8a
GitHub Actions: Enable start of GitHub Action workflows by a button c…
andygrunwald Aug 25, 2022
7a8f033
:warning: Update warning about current main branch and v2 :warning:
andygrunwald Sep 7, 2022
a746054
Split On-Premise and Cloud Clients #473 (#503)
andygrunwald Sep 11, 2022
bda468a
Changes to both (OnPremise and Cloud) clients to make it more future …
andygrunwald Sep 11, 2022
01115be
cloud: `NewMultiPartRequestWithContext` removed, `NewMultiPartRequest…
andygrunwald Sep 11, 2022
bd9c222
onpremise: `NewMultiPartRequestWithContext` removed, `NewMultiPartReq…
andygrunwald Sep 11, 2022
a1dd14e
chore(deps): bump github.com/google/go-cmp from 0.5.8 to 0.5.9 (#505)
dependabot[bot] Sep 11, 2022
6bc4139
#484: Make contribution easier to this project (#494)
andygrunwald Sep 11, 2022
a879a18
Changelog: Add note about ...WithContext API methods
andygrunwald Sep 11, 2022
c0f71dd
Version Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
9d33bf4
Fix import pathes of onpremise examples
andygrunwald Sep 11, 2022
62f4b5d
User Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
28be191
Status Category Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
b6aa52c
Status Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
f15fe0d
Sprint Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
90390b6
ServiceDesk Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
ccffe0a
Role Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
090630b
Merge pull request #513 from andygrunwald/issue-337-make-context-firs…
andygrunwald Sep 11, 2022
a4e7a72
Request Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
8e3f262
Resolution Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
18ac2bc
Metaissue Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
d7786f0
PermissionScheme Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
4eca2c2
Priority Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
85afd33
Component Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
d588147
Customer Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
3a203a5
Field Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
a118968
Filter Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
a5105d9
Group Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
9e24812
Project Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
7b652db
Merge pull request #514 from andygrunwald/issue-337-make-context-firs…
andygrunwald Sep 11, 2022
770cb36
Organization Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
ef937e6
Issuelink Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
3b8985f
Board Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
fb4caf4
Issue Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
948e8bc
Authentication Service: Remove "WithContext" API methods
andygrunwald Sep 11, 2022
5c16c68
Merge pull request #515 from andygrunwald/issue-337-make-context-firs…
andygrunwald Sep 11, 2022
b564b59
Replaced "GET" with http.MethodGet
andygrunwald Sep 11, 2022
d9332d8
Replaced "POST" with http.MethodPost
andygrunwald Sep 11, 2022
4d9ce5f
Replaced "PUT" with http.MethodPut
andygrunwald Sep 11, 2022
e936c72
Replaced "DELETE" with http.MethodDelete
andygrunwald Sep 11, 2022
efd864b
Add Changelog for "Replace all "GET", "POST", ... with http.MethodGet…
andygrunwald Sep 11, 2022
06a4f2d
Merge pull request #516 from andygrunwald/issue-508-get-post-http-rep…
andygrunwald Sep 11, 2022
f2d52eb
Get v2 working with go modules
andygrunwald Sep 11, 2022
4fa7b56
Merge pull request #517 from andygrunwald/issue-482-v2
andygrunwald Sep 11, 2022
247ff14
Fix #482: Fix import statements of examples
andygrunwald Sep 11, 2022
f0e3592
Fix #511: Easier and more lean issue templates
andygrunwald Sep 11, 2022
b90ee5d
Merge pull request #562 from andygrunwald/easier-issue-template-511
andygrunwald Sep 11, 2022
d9ec399
Fix #512: Easier Pull Request template
andygrunwald Sep 11, 2022
1a3d349
Merge pull request #563 from andygrunwald/easier-pr-template-512
andygrunwald Sep 11, 2022
73fd901
Basic setup of documentation with material for mkdocs
andygrunwald Sep 11, 2022
33e2fcb
BoardService: `BoardService.GetAllSprints` removed, `BoardService.Get…
andygrunwald Sep 12, 2022
295e4c7
GroupService: `GroupService.Get` removed, `GroupService.GetWithOption…
andygrunwald Sep 12, 2022
e22ee9a
IssueService: `Issue.Update` removed, `Issue.UpdateWithOptions` renamed
andygrunwald Sep 12, 2022
5a66ee4
IssueService: `Issue.GetCreateMeta` removed, `Issue.GetCreateMetaWith…
andygrunwald Sep 12, 2022
d2547bd
Project Service: `Project.GetList` removed, `Project.ListWithOptions`…
andygrunwald Sep 12, 2022
10c0101
Merge pull request #567 from andygrunwald/remove-WithOptions-294
andygrunwald Sep 12, 2022
63b9118
Merge branch 'main' into documentation-475
andygrunwald Sep 12, 2022
5638699
Add basic chapters like Installation and Supported Environments
andygrunwald Sep 12, 2022
4e131be
Merge pull request #564 from andygrunwald/documentation-475
andygrunwald Sep 12, 2022
713c378
chore(deps): bump actions/checkout from 2 to 3
dependabot[bot] Sep 13, 2022
25d06fb
Merge pull request #569 from andygrunwald/dependabot/github_actions/a…
andygrunwald Sep 13, 2022
e675126
chore(deps): bump actions/setup-python from 2 to 4
dependabot[bot] Sep 13, 2022
25826c2
Merge pull request #568 from andygrunwald/dependabot/github_actions/a…
andygrunwald Sep 13, 2022
4c62c7e
Replaced ReadAll and Unmarshal with NewDecoder
Fank Sep 13, 2022
2b3e37b
do not hide errors
Fank Sep 13, 2022
3b6e9df
README.md: fix example URLs
macpijan Sep 26, 2022
f00640c
:recycle: IssueCategory Service reviewed
ctreminiom Oct 10, 2022
f976e51
Merge pull request #576 from macpijan/fix-exaples-url
andygrunwald Oct 19, 2022
2113d5c
Fix all URLs in the README
andygrunwald Oct 19, 2022
eb8b02d
README: Removed the installation part for gopkg.in
andygrunwald Oct 19, 2022
0550807
Makefile: Switch to latest version of staticcheck
andygrunwald Oct 19, 2022
959dd7e
Makefile: Add commands for testing coverage
andygrunwald Oct 19, 2022
fc5561d
README: Add chapter about executing unit tests
andygrunwald Oct 19, 2022
1df2c28
Updated changelog with latest changes
andygrunwald Oct 19, 2022
6267520
PersonalAccessToken Auth: Used fmt.Sprintf to concat a string
andygrunwald Oct 19, 2022
2565dae
README: API-Version: Official support for Jira Cloud API in version 3
andygrunwald Oct 19, 2022
8929583
README.md: fix example URLs
macpijan Sep 26, 2022
bdbbc43
Fix all URLs in the README
andygrunwald Oct 19, 2022
f430c66
README: Removed the installation part for gopkg.in
andygrunwald Oct 19, 2022
7576942
Makefile: Switch to latest version of staticcheck
andygrunwald Oct 19, 2022
262ab8d
Makefile: Add commands for testing coverage
andygrunwald Oct 19, 2022
925add5
README: Add chapter about executing unit tests
andygrunwald Oct 19, 2022
16f9a8f
Updated changelog with latest changes
andygrunwald Oct 19, 2022
35154db
PersonalAccessToken Auth: Used fmt.Sprintf to concat a string
andygrunwald Oct 19, 2022
a291119
README: API-Version: Official support for Jira Cloud API in version 3
andygrunwald Oct 19, 2022
107734e
Cloud/Status Category: Smaller godoc changes
andygrunwald Oct 19, 2022
46f6b7a
Cloud/Status category: Added two additional testing checks
andygrunwald Oct 19, 2022
58243b0
Cloud/Status category: Add comments for usage example
andygrunwald Oct 19, 2022
2782ff3
On premise/Status category: Add comments for usage example
andygrunwald Oct 19, 2022
238ae39
Cloud/Status category: fixed error message if no status category id i…
andygrunwald Oct 19, 2022
0f08329
Cloud/Status category: Added empty line to improve readability
andygrunwald Oct 19, 2022
b868203
On premise/Status category: Fixed godoc and links to Jira documentation
andygrunwald Oct 19, 2022
2f71122
On premise/Status category: Added an additional test check
andygrunwald Oct 19, 2022
c2943e2
CHANGELOG: Workflow status categories: Revisited and fully implemente…
andygrunwald Oct 19, 2022
e256d12
Merge branch 'ctreminiom-feature/552'
andygrunwald Oct 19, 2022
4f97699
CHANGELOG: Removed git conflict marker
andygrunwald Oct 19, 2022
9ba3fcd
README.md: fix example URLs
macpijan Sep 26, 2022
a61e206
Fix all URLs in the README
andygrunwald Oct 19, 2022
7cca85e
README: Removed the installation part for gopkg.in
andygrunwald Oct 19, 2022
2b74414
Makefile: Switch to latest version of staticcheck
andygrunwald Oct 19, 2022
0f45b68
Makefile: Add commands for testing coverage
andygrunwald Oct 19, 2022
22e4eef
README: Add chapter about executing unit tests
andygrunwald Oct 19, 2022
6e8bdbf
Updated changelog with latest changes
andygrunwald Oct 19, 2022
325069c
PersonalAccessToken Auth: Used fmt.Sprintf to concat a string
andygrunwald Oct 19, 2022
70e965e
README: API-Version: Official support for Jira Cloud API in version 3
andygrunwald Oct 19, 2022
35e402f
:recycle: IssueCategory Service reviewed
ctreminiom Oct 10, 2022
a2931c3
README.md: fix example URLs
macpijan Sep 26, 2022
af93a3b
Updated changelog with latest changes
andygrunwald Oct 19, 2022
d75702f
Cloud/Status Category: Smaller godoc changes
andygrunwald Oct 19, 2022
6a1fe20
Cloud/Status category: Added two additional testing checks
andygrunwald Oct 19, 2022
894a3fc
Cloud/Status category: Add comments for usage example
andygrunwald Oct 19, 2022
4fec6ac
On premise/Status category: Add comments for usage example
andygrunwald Oct 19, 2022
4f0fa86
Cloud/Status category: fixed error message if no status category id i…
andygrunwald Oct 19, 2022
62ba32f
Cloud/Status category: Added empty line to improve readability
andygrunwald Oct 19, 2022
f0fc73b
On premise/Status category: Fixed godoc and links to Jira documentation
andygrunwald Oct 19, 2022
1e4735c
On premise/Status category: Added an additional test check
andygrunwald Oct 19, 2022
c361e09
CHANGELOG: Workflow status categories: Revisited and fully implemente…
andygrunwald Oct 19, 2022
469abf1
On premise/Authentication: Return error where possible
andygrunwald Oct 19, 2022
75eddf5
On premise/Issue: Fix test data
andygrunwald Oct 19, 2022
221b42e
Changelog: Internal: Replaced `io.ReadAll` and `json.Unmarshal` with …
andygrunwald Oct 19, 2022
ff38af3
Merge branch 'mcl-de-fk_marshal'
andygrunwald Oct 19, 2022
82afaac
Fix #579: Cloud/Authentication: Removed `BearerAuthTransport`, becaus…
andygrunwald Oct 19, 2022
4a88a05
Fix #579: Cloud/Authentication: `PATAuthTransport` was renamed to `AP…
andygrunwald Oct 19, 2022
6f4aa97
Fix #579: Update changelog
andygrunwald Oct 19, 2022
641e89f
Cloud/Authentication: Removed `APITokenAuthTransport`, renamed `Basic…
andygrunwald Oct 19, 2022
fb6a196
Fix unit tests
andygrunwald Oct 19, 2022
d86ceae
Cloud/Examples: Fix "GetSelf" method to get the current user
andygrunwald Oct 19, 2022
32a57fd
Merge pull request #580 from andygrunwald/issue-579
andygrunwald Oct 19, 2022
4bf851e
Fix #578: Remove `CookieAuthTransport` and `AuthenticationService`
andygrunwald Oct 19, 2022
e339202
Updated CHANGELOG
andygrunwald Oct 19, 2022
58a9305
Merge pull request #581 from andygrunwald/issue-578
andygrunwald Oct 19, 2022
5fccdb3
Cloud: Add TODO comments to methods that need a double check
andygrunwald Oct 19, 2022
6c76fac
On Premise: Add TODO comments to methods that need a double check
andygrunwald Oct 19, 2022
5d84a84
Cloud/Components: Add ComponentService.Get
andygrunwald Oct 19, 2022
28d994e
Fix package io/ioutil is deprecated: As of Go 1.16, the same function…
andygrunwald Oct 19, 2022
2671c36
Merge pull request #583 from andygrunwald/followup-389
andygrunwald Oct 19, 2022
aeff901
Cloud/Component: Review service "Component" in the Cloud Jira client …
andygrunwald Oct 19, 2022
07a4e5b
Merge pull request #584 from andygrunwald/issue-550
andygrunwald Oct 19, 2022
685151c
Cloud/User: Update User struct
andygrunwald Oct 19, 2022
a014314
Merge pull request #585 from andygrunwald/pr-412
andygrunwald Oct 19, 2022
2b87146
Fixed typo: apiEdpoint vs. apiEndpoint
andygrunwald Oct 19, 2022
b835d6c
Update Changelog: Cloud/User: Renamed `User.GetSelf` to `User.GetCurr…
andygrunwald Oct 19, 2022
5002af4
Onpremise/Auth: Update README and examples for Bearer Auth
andygrunwald Oct 19, 2022
051e945
Onpremise/Example: Fix bearerauth example
andygrunwald Oct 19, 2022
4496e87
Merge pull request #586 from andygrunwald/pr-469
andygrunwald Oct 19, 2022
9eaa723
Cloud/Board: Add Location to Board struct
andygrunwald Oct 19, 2022
76785ff
Merge pull request #587 from andygrunwald/pr-455
andygrunwald Oct 19, 2022
c7a7410
Cloud/Board: Add Sprint goal
andygrunwald Oct 19, 2022
6cf5212
Merge pull request #588 from andygrunwald/pr-463
andygrunwald Oct 19, 2022
5891423
Cloud/Group: Update Add/Remove and replace username parameter with ac…
andygrunwald Oct 19, 2022
58a1181
Merge pull request #589 from andygrunwald/pr-414
andygrunwald Oct 19, 2022
e7a6dfa
Cloud/Issue: add missing comments about closing Response.Body
vladimir-ch Oct 23, 2022
9c3184e
Onpremise/Issue: add missing comments about closing Response.Body
vladimir-ch Oct 23, 2022
aea7aec
Merge pull request #590 from vladimir-ch/docs-close-body-transition
andygrunwald Oct 23, 2022
af9dc68
Issue Comments: Add field "properties"
andygrunwald Nov 22, 2022
dfa3565
fix(code-snippet): example jira ticket status update
roshanraj Nov 23, 2022
0946977
Merge pull request #593 from roshanraj/patch-1
andygrunwald Nov 23, 2022
7b7e0c0
chore(deps): bump dominikh/staticcheck-action from 1.2.0 to 1.3.0
dependabot[bot] Jan 6, 2023
081901e
Update README.md
theriverman Feb 14, 2023
9b2c3c1
Merge pull request #614 from theriverman/patch-1
andygrunwald Feb 14, 2023
bdbfed6
chore(deps): bump github.com/golang-jwt/jwt/v4 from 4.4.2 to 4.5.0
dependabot[bot] Feb 20, 2023
d9a8f8a
chore(deps): bump golang.org/x/term
dependabot[bot] Mar 6, 2023
cd8a512
Merge pull request #619 from andygrunwald/dependabot/go_modules/golan…
andygrunwald Mar 12, 2023
ca74e8e
Merge pull request #615 from andygrunwald/dependabot/go_modules/githu…
andygrunwald Mar 12, 2023
bd96450
Merge pull request #605 from andygrunwald/dependabot/github_actions/d…
andygrunwald Mar 12, 2023
2e11dff
Dependabot: Switch update interval from daily to monthly
andygrunwald Mar 25, 2023
94eb494
Merge remote-tracking branch 'upstream/main' into lawrence-merge-upst…
lawrencejones Apr 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 8 additions & 27 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,26 @@ assignees: ''

---

## Describe the bug
## What happened?

A clear and concise description of what the bug is.
Please provide as much info as possible.
Not doing so may result in your bug not being addressed in a timely manner.

Formatting tips: GitHub supports Markdown: https://guides.github.com/features/mastering-markdown/
## What did you expect to happen?

## To Reproduce

Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include configuration, logs, etc. to reproduce, if relevant.
## How can we reproduce it (as minimally and precisely as possible)?

1.
2.
3.
4.
Minimal code helps us to identify the problem faster.

## Expected behavior
## Anything else we need to know?

A clear and concise description of what you expected to happen.

## Possible Solution

Not obligatory, but suggest a fix/reason for the bug, or ideas how to implement: the addition or change.

## Your Environment

Include as many relevant details about the environment you experienced the problem in

* go-jira version (git tag or sha):
* Go version (`go version`):
* Jira version:
* Jira type (cloud or on-premise):
* Involved Jira plugins:
* Operating System and version:

## Additional context

Add any other context about the problem here.

How has this issue affected you? What are you trying to accomplish?
Providing context helps us come up with a solution that is most useful in the real world.


* Jira version / Api version:
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

16 changes: 4 additions & 12 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
---
name: Feature request
about: Suggest an idea for this project
about: Suggest a feature for this project
title: ''
labels: ''
assignees: ''

---

## Is your feature request related to a problem? Please describe.
## What would you like to be added?

A clear and concise description of what the problem is. Ex. I'm always using this feature but am missing [...]

## Describe the solution you'd like
## Why is this needed?

A clear and concise description of what you want to happen.

## Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

## Additional context

Add any other context or screenshots about the feature request here.
## Anything else we need to know?
41 changes: 17 additions & 24 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
# Description
#### What type of PR is this?

Please describe _what does this Pull Request fix or add?_.
<!--
Add one of the following kinds:
* bug
* cleanup
* documentation
* feature

Information that is useful here:
* **The What**: What is your change doing?
* **The Why**: Why is your change useful/needed? What is your use case? (this helps us to understand the real world better)
* **Type of change**: Things like Bugfix, New feature, Code quality improvements, Dependency upgrade, Documentation, ...
* **Breaking change**: Yes or no? Backward compatible?
* **Related to an issue**: Does this fix or close an issue? Or is related in any kind?
* **Jira Version + Type**: Which Jira version and type (on-premise / cloud) you have used?
Optionally add one or more of the following kinds if applicable:
* api-change
* deprecation
-->

## Example:
#### What this PR does / why we need it:

Let us know how users can use or test this functionality.

```go
// Example code
#### Which issue(s) this PR fixes:

```
Fixes #

# Checklist
#### Special notes for your reviewer:

* [ ] Unit or Integration tests added
* [ ] Good Path
* [ ] Error Path
* [ ] Commits follow conventions described here:
* [ ] [Conventional Commits 1.0.0](https://conventionalcommits.org/en/v1.0.0-beta.4/#summary)
* [ ] [The seven rules of a great Git commit message](https://chris.beams.io/posts/git-commit/#seven-rules)
* [ ] Commits are squashed such that
* [ ] There is 1 commit per isolated change
* [ ] I've not made extraneous commits/changes that are unrelated to my change.

#### Additional documentation e.g., usage docs, etc.:
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
interval: "monthly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "monthly"
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
jira-onpremise: onpremise/**/*
jira-cloud: cloud/**/*
documentation: docs/**/*
16 changes: 16 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Documentation
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
12 changes: 0 additions & 12 deletions .github/workflows/greetings.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/label-merge-conflicts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Auto-label merge conflicts

on:
workflow_dispatch:
schedule:
- cron: "*/15 * * * *"

# limit permissions
permissions:
contents: read
pull-requests: write

jobs:
conflicts:
runs-on: ubuntu-latest

steps:
- uses: mschilde/[email protected]
with:
CONFLICT_LABEL_NAME: conflicts
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
19 changes: 19 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Label pull requests

on:
pull_request:
workflow_dispatch:

# limit permissions
permissions:
contents: read
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
62 changes: 44 additions & 18 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,71 @@ name: Tests
on:
push:
branches:
- master
- main
pull_request:
workflow_dispatch:
schedule:
- cron: "5 1 * * *"

jobs:
test:
name: Test and lint
unit-test:
name: Unit tests
strategy:
fail-fast: false
matrix:
go-version: [ '1.18', '1.17' ]
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
go: [ '1.19', '1.18' ]
os: [ 'windows-latest', 'ubuntu-latest', 'macOS-latest' ]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ matrix.go }}

# Caching go modules to speed up the run
- uses: actions/[email protected]
- name: Run Unit tests (Go ${{ matrix.go }})
run: make test

fmt:
name: go fmt
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: 1.19

- name: Run go fmt
- name: Run go fmt (Go ${{ matrix.go }})
if: runner.os != 'Windows'
run: diff -u <(echo -n) <(gofmt -d -s .)

vet:
name: go vet
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Run go vet
run: make vet

- name: Run staticcheck
run: make staticcheck
staticcheck:
name: staticcheck
runs-on: ubuntu-latest

- name: Run Unit tests.
run: make test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Run staticcheck (Go ${{ matrix.go }})
uses: dominikh/[email protected]
with:
version: "2022.1"
install-go: false
cache-key: staticcheck-cache
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ _testmain.go
*.prof
*.iml
.idea
.DS_Store
.DS_Store

# Code coverage
coverage.txt
Loading