Commit Graph

47 Commits

Author SHA1 Message Date
6543
2e397e1b02 Add .gitignore (#28)
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/28
2024-07-22 21:37:31 +00:00
6543
525775bd26 Add nix flake (#31)
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/31
2024-07-22 21:37:09 +00:00
6543
1b0f1c5754 Format Readme (#30)
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/30
2024-07-22 21:35:53 +00:00
Lauris BH
7ea01d1b3b Add Forgejo forge type constant (#27)
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/27
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-committed-by: Lauris BH <lauris@nix.lv>
2024-07-18 18:32:09 +00:00
woodpecker-bot
212153caee fix(deps): update module golang.org/x/net to v0.27.0 2024-07-06 00:07:20 +00:00
woodpecker-bot
1842b6efa6 fix(deps): update module golang.org/x/net to v0.26.0 2024-06-09 00:16:37 +00:00
woodpecker-bot
d493cf5c51 chore(deps): update woodpeckerci/plugin-reviewdog-golangci-lint docker tag to v1.59 2024-06-08 00:05:34 +00:00
woodpecker-bot
19c216c533 chore(deps): update golangci/golangci-lint docker tag to v1.59 (#26)
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/26
Reviewed-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2024-06-02 12:06:57 +00:00
woodpecker-bot
c182818d82 fix(deps): update module github.com/rs/zerolog to v1.33.0 2024-05-25 00:09:55 +00:00
woodpecker-bot
38dcac787e fix(deps): update module golang.org/x/net to v0.25.0 2024-05-11 00:06:54 +00:00
woodpecker-bot
5c32612e8d chore(deps): update golangci/golangci-lint docker tag to v1.58 2024-05-04 00:06:24 +00:00
woodpecker-bot
567908df09 fix(deps): update module github.com/urfave/cli/v2 to v2.27.2 2024-04-28 00:13:40 +00:00
woodpecker-bot
72d3ea674d fix(deps): update module golang.org/x/net to v0.24.0 2024-04-06 00:08:04 +00:00
Lauris BH
ca1f8e48fe Update pipeline with Go code review (#25)
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/25
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-committed-by: Lauris BH <lauris@nix.lv>
2024-03-30 15:52:30 +00:00
Lauris BH
b67c23ab79
Set usage text to not display default urfave cli one 2024-03-30 17:33:08 +02:00
woodpecker-bot
f6037e6127 chore(deps): update golangci/golangci-lint docker tag to v1.57 2024-03-23 00:09:05 +00:00
woodpecker-bot
fa7f39a739 fix(deps): update module golang.org/x/net to v0.22.0 2024-03-09 00:11:20 +00:00
woodpecker-bot
0ab802ca5b fix(deps): update module github.com/stretchr/testify to v1.9.0 2024-03-02 00:09:58 +00:00
anbraten
090b4571b4 Add & update some env data (#24)
- Some renamings to be more descriptive
- link -> url
- deprecated all old properties

closes #22

Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/24
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: anbraten <anbraten@noreply.codeberg.org>
Co-committed-by: anbraten <anbraten@noreply.codeberg.org>
2024-02-15 18:53:26 +00:00
woodpecker-bot
6a59bd9561 fix(deps): update module golang.org/x/net to v0.21.0 2024-02-08 11:41:26 +00:00
woodpecker-bot
f3134af984 chore(deps): update golangci/golangci-lint docker tag to v1.56 2024-02-08 11:06:03 +00:00
woodpecker-bot
890edaf1c3 chore(deps): update golang docker tag to v1.22 2024-02-08 10:36:05 +00:00
woodpecker-bot
a969947601 fix(deps): update module github.com/rs/zerolog to v1.32.0 2024-02-05 00:10:14 +00:00
woodpecker-bot
0ae47cb04a fix(deps): update module golang.org/x/net to v0.20.0 2024-01-09 00:09:10 +00:00
woodpecker-bot
125fb101dc fix(deps): update module github.com/urfave/cli/v2 to v2.27.1 2023-12-31 00:18:25 +00:00
woodpecker-bot
7b81f9a203 fix(deps): update module github.com/urfave/cli/v2 to v2.27.0 2023-12-27 00:10:03 +00:00
Lauris BH
93da4f40e1 Add Forge metadata (#20)
Adds support for loading Forge metadata from env variables

Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/20
Reviewed-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-committed-by: Lauris BH <lauris@nix.lv>
2023-12-10 20:27:57 +00:00
Lauris BH
30c031631d Fix support for woodpecker 2.0.0 (#19)
`_LINK` -> `_URL`

Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/19
Reviewed-by: anbraten <anbraten@noreply.codeberg.org>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-committed-by: Lauris BH <lauris@nix.lv>
2023-12-07 10:45:09 +00:00
woodpecker-bot
f02d9dcbb4 fix(deps): update module github.com/urfave/cli/v2 to v2.26.0 2023-12-04 00:11:20 +00:00
woodpecker-bot
39a7259ed0 fix(deps): update module golang.org/x/net to v0.19.0 2023-11-29 00:11:00 +00:00
jolheiser
275eb26ca7 fix: make readme example compile (#17)
Resolves #16

Also formatted it.

https://go.dev/play/p/sFpiRTwLGlq
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/17
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: jolheiser <jolheiser@noreply.codeberg.org>
Co-committed-by: jolheiser <jolheiser@noreply.codeberg.org>
2023-11-15 17:33:12 +00:00
woodpecker-bot
f1c4c040ce fix(deps): update module golang.org/x/net to v0.18.0 2023-11-09 00:09:30 +00:00
pat-s
174f822f73
also run tests on renovate/ branches 2023-11-08 20:04:23 +01:00
woodpecker-bot
ab2091b8bc Update module github.com/joho/godotenv to v1.5.1 (#11)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/joho/godotenv](https://github.com/joho/godotenv) | require | minor | `v1.4.0` -> `v1.5.1` |

---

### Release Notes

<details>
<summary>joho/godotenv (github.com/joho/godotenv)</summary>

### [`v1.5.1`](https://github.com/joho/godotenv/releases/tag/v1.5.1): Fix parser regressions from multiline support

[Compare Source](https://github.com/joho/godotenv/compare/v1.5.0...v1.5.1)

Version 1.5 came with a whole new parser, and with a new parser comes new bugs.

Things that were broken in 1.5 that are now fixed:

-   unquoted variables with interior whitespace no longer split on the first space (and then break the following line if you have one)
-   inline comments now work again for both quoted and unquoted variables
-   ` export  ` statement filtering was made more robust and matched earlier versions behaviour
-   `FOO.BAR` key names are permitted again (i have no idea why you'd do it, but it's explicitly supported in ruby dotenv files)

There's one breaking change: earlier versions of this library would allow unterminated quoted variables in some instances and return a value (ie `FOO="bar` would set env of `FOO: '"bar'`), this now returns an error.

#### What's Changed

-   Fix bug where internal unquoted whitespace truncates values by [@&#8203;joho](https://github.com/joho) in https://github.com/joho/godotenv/pull/205

**Full Changelog**: https://github.com/joho/godotenv/compare/v1.5.0...v1.5.1

### [`v1.5.0`](https://github.com/joho/godotenv/releases/tag/v1.5.0): - multiline variables

[Compare Source](https://github.com/joho/godotenv/compare/v1.4.0...v1.5.0)

The big news this release is that godotenv finally, after much procrastination in review, supports multiline variables (fixes [#&#8203;64](https://github.com/joho/godotenv/issues/64)). Big shoutout to [@&#8203;x1unix](https://github.com/x1unix) for the bulk of the work on the original PR and also to [@&#8203;coolaj86](https://github.com/coolaj86) and [@&#8203;austinsasko](https://github.com/austinsasko) for some very helpful review and tweaks.

Also added a `-o` overload flag (thanks [@&#8203;2tef](https://github.com/2tef))

#### What's Changed

-   Try and fix go get in CI for power8 by [@&#8203;joho](https://github.com/joho) in https://github.com/joho/godotenv/pull/157
-   Fix typos in comments and extend README by [@&#8203;alexandear](https://github.com/alexandear) in https://github.com/joho/godotenv/pull/177
-   tune README by [@&#8203;bikbah](https://github.com/bikbah) in https://github.com/joho/godotenv/pull/170
-   Remove renovate, add dependabot by [@&#8203;joho](https://github.com/joho) in https://github.com/joho/godotenv/pull/183
-   Setup codeql by [@&#8203;joho](https://github.com/joho) in https://github.com/joho/godotenv/pull/186
-   Bump actions/checkout from 2 to 3 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/joho/godotenv/pull/184
-   Bump actions/setup-go from 2 to 3 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/joho/godotenv/pull/185
-   Add darwin arm64 build by [@&#8203;statik](https://github.com/statik) in https://github.com/joho/godotenv/pull/174
-   Sort Go import in README by [@&#8203;Doarakko](https://github.com/Doarakko) in https://github.com/joho/godotenv/pull/193
-   Fix godoc formatting by [@&#8203;joho](https://github.com/joho) in https://github.com/joho/godotenv/pull/197
-   fix tiny details by [@&#8203;2tef](https://github.com/2tef) in https://github.com/joho/godotenv/pull/199
-   Multiline string support by [@&#8203;x1unix](https://github.com/x1unix) in https://github.com/joho/godotenv/pull/156
-   Update CI to test go 1.20 by [@&#8203;joho](https://github.com/joho) in https://github.com/joho/godotenv/pull/201
-   fix whitespace with gofmt by [@&#8203;2tef](https://github.com/2tef) in https://github.com/joho/godotenv/pull/203
-   add overload flag by [@&#8203;2tef](https://github.com/2tef) in https://github.com/joho/godotenv/pull/200
-   -   Fix: ioutil.ReadAll() is deprecated, so removed it's dependency by [@&#8203;dreygur](https://github.com/dreygur) in https://github.com/joho/godotenv/pull/202

#### New Contributors

-   [@&#8203;x1unix](https://github.com/x1unix) made their first contribution in https://github.com/joho/godotenv/pull/118
-   [@&#8203;alexandear](https://github.com/alexandear) made their first contribution in https://github.com/joho/godotenv/pull/177
-   [@&#8203;bikbah](https://github.com/bikbah) made their first contribution in https://github.com/joho/godotenv/pull/170
-   [@&#8203;dependabot](https://github.com/dependabot) made their first contribution in https://github.com/joho/godotenv/pull/184
-   [@&#8203;statik](https://github.com/statik) made their first contribution in https://github.com/joho/godotenv/pull/174
-   [@&#8203;Doarakko](https://github.com/Doarakko) made their first contribution in https://github.com/joho/godotenv/pull/193
-   [@&#8203;2tef](https://github.com/2tef) made their first contribution in https://github.com/joho/godotenv/pull/199
-   [@&#8203;dreygur](https://github.com/dreygur) made their first contribution in https://github.com/joho/godotenv/pull/202

**Full Changelog**: https://github.com/joho/godotenv/compare/v1.4.0...v1.5.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMi4wIiwidXBkYXRlZEluVmVyIjoiMzcuMzMuNiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/11
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2023-10-27 12:27:44 +00:00
woodpecker-bot
7a77b4deb6 Update golang Docker tag to v1.21 (#9)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| golang | minor | `1.18` -> `1.21` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMi4wIiwidXBkYXRlZEluVmVyIjoiMzcuMzIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/9
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2023-10-27 12:27:37 +00:00
woodpecker-bot
1396daf59f Update module golang.org/x/net to v0.17.0 2023-10-27 00:09:34 +00:00
woodpecker-bot
4595cecac4 Update module github.com/urfave/cli/v2 to v2.25.7 2023-10-26 00:14:32 +00:00
woodpecker-bot
629a1a9258 Update module github.com/rs/zerolog to v1.31.0 2023-10-26 00:08:32 +00:00
woodpecker-bot
875983b71f Update golangci/golangci-lint Docker tag to v1.55 2023-10-25 10:43:48 +00:00
Woodpecker Bot
1baf72dd81 Update module github.com/stretchr/testify to v1.8.4 2023-10-22 20:43:52 +00:00
pat-s
92ff2797fa No dup wfs (#6)
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/6
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-10-17 17:19:21 +00:00
Patrick Schratz
18a1562886 Configure Renovate (#4)
Welcome to [Renovate](https://github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.

---
### Detected Package Files

 * `go.mod` (gomod)
 * `.woodpecker.yaml` (woodpecker)

### Configuration Summary

Based on the default config's presets, Renovate will:

  - Start dependency updates only once this onboarding PR is merged
  - Enable Renovate Dependency Dashboard creation.
  - Use semantic commit type `fix` for dependencies and `chore` for all others if semantic commits are in use.
  - Ignore `node_modules`, `bower_components`, `vendor` and various test/tests directories.
  - Group known monorepo packages together.
  - Use curated list of recommended non-monorepo package groupings.
  - Apply crowd-sourced package replacement rules.
  - Apply crowd-sourced workarounds for known problems with packages.
  - Run lock file maintenance (updates) early Monday mornings.
  - Schedule automerge daily.
  - Schedule for weekends.
  - Enable Renovate Dependency Dashboard creation.
  - Use semantic commit type `fix` for dependencies and `chore` for all others if semantic commits are in use.
  - Ignore `node_modules`, `bower_components`, `vendor` and various test/tests directories.
  - Group known monorepo packages together.
  - Use curated list of recommended non-monorepo package groupings.
  - Apply crowd-sourced package replacement rules.
  - Apply crowd-sourced workarounds for known problems with packages.
  - Run lock file maintenance (updates) early Monday mornings.
  - Schedule automerge daily.
  - Schedule for weekends.
  - Run Renovate on following schedule: every weekend

🔡 Would you like to change the way Renovate is upgrading your dependencies? Simply edit the `renovate.json` in this branch with your custom config and the list of Pull Requests in the "What to Expect" section below will be updated the next time Renovate runs.

---

### What to Expect

With your current configuration, Renovate will create 7 Pull Requests:

<details>
<summary>Update module github.com/stretchr/testify to v1.8.4</summary>

  - Schedule: ["every weekend"]
  - Branch name: `renovate/github.com-stretchr-testify-1.x`
  - Merge into: `main`
  - Upgrade [github.com/stretchr/testify](https://github.com/stretchr/testify) to `v1.8.4`

</details>

<details>
<summary>Update golang Docker tag to v1.21</summary>

  - Schedule: ["every weekend"]
  - Branch name: `renovate/golang-1.x`
  - Merge into: `main`
  - Upgrade golang to `1.21`

</details>

<details>
<summary>Update golangci/golangci-lint Docker tag to v1.54</summary>

  - Schedule: ["every weekend"]
  - Branch name: `renovate/golangci-golangci-lint-1.x`
  - Merge into: `main`
  - Upgrade golangci/golangci-lint to `v1.54-alpine`

</details>

<details>
<summary>Update module github.com/joho/godotenv to v1.5.1</summary>

  - Schedule: ["every weekend"]
  - Branch name: `renovate/github.com-joho-godotenv-1.x`
  - Merge into: `main`
  - Upgrade [github.com/joho/godotenv](https://github.com/joho/godotenv) to `v1.5.1`

</details>

<details>
<summary>Update module github.com/rs/zerolog to v1.31.0</summary>

  - Schedule: ["every weekend"]
  - Branch name: `renovate/github.com-rs-zerolog-1.x`
  - Merge into: `main`
  - Upgrade [github.com/rs/zerolog](https://github.com/rs/zerolog) to `v1.31.0`

</details>

<details>
<summary>Update module github.com/urfave/cli/v2 to v2.25.7</summary>

  - Schedule: ["every weekend"]
  - Branch name: `renovate/github.com-urfave-cli-v2-2.x`
  - Merge into: `main`
  - Upgrade [github.com/urfave/cli/v2](https://github.com/urfave/cli) to `v2.25.7`

</details>

<details>
<summary>Update module golang.org/x/net to v0.17.0</summary>

  - Schedule: ["every weekend"]
  - Branch name: `renovate/golang.org-x-net-0.x`
  - Merge into: `main`
  - Upgrade golang.org/x/net to `v0.17.0`

</details>

<br />

🚸 Branch creation will be limited to maximum 2 per hour, so it doesn't swamp any CI resources or overwhelm the project. See docs for `prhourlylimit` for details.

---

 Got questions? Check out Renovate's [Docs](https://docs.renovatebot.com/), particularly the Getting Started section.
If you need any further assistance then you can also [request help here](https://github.com/renovatebot/renovate/discussions).

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

<!--renovate-config-hash:d0f89381ee26ddd9055d24c12fa2ffc765c573491e687875e761186223a52bc4-->

Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/4
Co-authored-by: Patrick Schratz <pat-s@mailbox.org>
Co-committed-by: Patrick Schratz <pat-s@mailbox.org>
2023-10-16 16:52:34 +00:00
6543
afbbefb22e
update pipeline to meet v1.0.0 standard 2023-07-31 05:24:14 +02:00
Lauris BH
276c549ebf Fix to not log time in output (#3)
Co-authored-by: Lauris BH <lauris@nix.lv>
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/3
2023-01-09 12:33:18 +00:00
Lauris BH
8208462a69 Exclude time from log (#2)
Co-authored-by: Lauris BH <lauris@nix.lv>
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/2
2023-01-09 11:53:08 +00:00
Lauris BH
e5ca84b806 Use console logger instead of JSON output (#1)
Co-authored-by: Lauris BH <lauris@nix.lv>
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/1
2023-01-09 01:17:04 +00:00
Lauris BH
60d32ee4ae
Initial implementation 2023-01-08 04:53:03 +02:00