Commit graph

282 commits

Author SHA1 Message Date
Jacob Floyd 7f4a205764
Remove legacy/unused code + misc cleanups (#331)
* delete obsolete cncd code

jsonrpc2 client+server, and the utils that used them (piped, pipec)
are not used anymore.

jsonrpc2 was replaced with grpc
piped+pipec were replaced by agents

* delete duplicate section in swagger file

* comment typos

* go mod tidy (websocket+jsonrpc2 no longer used)

* go mod vendor

Co-authored-by: Anbraten <anton@ju60.de>
2021-09-21 17:35:32 +02:00
Anbraten d15769b17a
Ignore pushes to tags for gitea (#289)
closes #274
2021-08-31 03:00:29 +02:00
Anbraten 34cfabb56d
Fix filter pipeline config files (#279)
closes #271 

- filter pipeline config folders for `.yml` and `.yaml` files
- improve `fetchConfig` tests
- update remote mock and correct wrong folder name `mock` => `mocks` to match package name
- fix: return correct filename for fallback
- improve config loading by checking if folder or not before sending api call
2021-08-30 22:54:21 +02:00
Anbraten 1a67fc6e99
Use server-host as source for public links and warn if it is set to localhost (#251)
* Use server-host as source for public links

* use config and rm GetURL()

* fix: solve import cycle

Co-authored-by: 6543 <6543@obermui.de>
2021-08-20 16:32:52 +02:00
ygbillet c699ea5789
Add mutli-pipeline to Gitea (#225)
* Add mutli-pipeline to Gitea client
* Add multi-pipeline to Gitea OAuth client

ref: https://woodpecker.laszlo.cloud/multi-pipeline/

Signed-off-by: Yves-Gaël BILLET <ygbillet@ifotec.com>
Co-authored-by: Yves-Gaël Billet <yg.billet@gmail.com>
2021-07-05 19:33:02 +02:00
6543 ee3e4bb189
Add "path" support to gitea on push hooks (#235) 2021-07-04 20:38:59 +02:00
Alex Eftimie 2ff91e6a05
Add support for path-prefix condition (#174)
Example:
```yaml
when:
  path: '*.md'
```

should match only builds in which the commit added/removed or modified files with the *.md extension

Co-authored-by: 6543 <6543@obermui.de>
2021-06-28 23:50:35 +02:00
6543 d40a4a4b32
Enable go vet for ci (#230)
* enable go vet for ci

* fix vet issues

* move `./.cli.sh` into `make release-cli`
2021-06-22 13:26:37 +02:00
6543 bfc4aa8059
Enforce code format (#228)
* format .drone.yml & go code

* improve .editorconfig

* extend Makefile

* enforce go code format

* fix space

* update deps

* clean up
2021-06-22 12:34:35 +02:00
techknowlogick 77e046b47f
Add OAuth2 Support for Gitea Remote (#226)
* add oauth support for Gitea

* go fmt

* cli flags
2021-06-17 09:02:44 +02:00
speatzle b1ff2541b8
fix gitea "cannot authenticate user. 403 Forbidden" (#221)
Co-authored-by: slt <samuel.lorch@sp-online.de>
2021-06-05 10:55:48 +02:00
Laszlo Fogas c7ebd68232 Relaced laszlocph/woodpecker with woodpecker-ci/woodpecker 2021-05-25 14:08:27 +02:00
Laszlo Fogas 3357750e37 Fixture handler needed an update after Gitea logic change 2021-04-28 09:23:40 +02:00
Pawel Boguslawski 3c4a4ccbb4 Company name fixed
Company name fixed.

Fixes: e96a17dc9e
Author-Change-Id: IB#1107754
2021-03-29 14:21:29 +02:00
Pawel Boguslawski e96a17dc9e Incomplete Gitea repository list fixed
Woodpecker may display incomplete list of Gitea
repositores user has access to because Gitea forces
paginated repo list reading. This mod fixes it.

Related: https://gitea.com/gitea/go-sdk/issues/507
Author-Change-Id: IB#1107754
2021-03-29 13:44:47 +02:00
Laszlo Fogas 463c620cd6 Be more precise with the version number 2020-09-30 14:18:32 +02:00
Laszlo Fogas 50fc1320fe Update mock Gitea server 2020-09-30 13:27:34 +02:00
6543 02c957bcdd
Update Gitea SDK to v0.13.0 and refactor 2020-09-16 08:48:09 +02:00
6543 eb8e2fd2f2
migrate 2020-05-22 13:15:33 +02:00
Ian a11db91e49 Upgrade dependencies 2020-05-18 16:41:15 +01:00
mhmxs 53258bf989 Format source code 2019-09-14 14:21:16 +02:00
Laszlo Fogas 630c383181 Project is renamed to Woodpecker 2019-08-27 13:07:19 +02:00
Laszlo Fogas e2b76ac449 Fixing infinite loop :o 2019-07-17 13:58:47 +02:00
Laszlo Fogas 6b442bf57e Merge remote-tracking branch 'origin/master' into bitbucket-fix
* origin/master: (59 commits)
  Pull in drone-go
  Readme
  UI bugfixes
  Drone tag
  Bump version
  More prometheus metrics, refactoring
  Bump version
  Test Pause/Resume
  Endpoint that blocks until there are running builds
  Pause/Resume queue
  Bump version
  Latest UI
  Persist intended URL through the OAuth flow
  Bump version
  Latest UI
  Fallback to default config. Allows incremental rollout of custom-path
  Task dependencies to survive restarts
  .drone.yml takes precedence over configured path. Allows incremental rollout
  Assign multiple pending tasks in one go
  Supporting skip_clone
  ...
2019-07-09 11:17:25 +02:00
Laszlo Fogas ace264fe2f Persist intended URL through the OAuth flow 2019-06-27 08:25:00 +02:00
Laszlo Fogas 69de8face1 Handling canceled, skipped builds 2019-06-19 08:36:13 +02:00
Laszlo Fogas 1d47ba8a32 Status line for each pipeline on Github 2019-06-17 10:48:40 +02:00
Laszlo Fogas a22747f5c3 Sort later, so it is sorted in restarts too 2019-06-16 15:55:55 +02:00
Laszlo Fogas 5869b62d3d Moving to 2.0 repositories endpoint, it returns plain text 2019-06-13 16:33:51 +02:00
Laszlo Fogas 9504b00a40 How to generate sql files 2019-06-07 10:43:42 +02:00
Laszlo Fogas 435083db9e Handling channel close 2019-06-05 10:08:49 +02:00
Laszlo Fogas 5cc4dca56f Fetching multiple pipelines from Github, skipping some logic for now 2019-06-04 15:04:18 +02:00
Laszlo Fogas 75d30dea09 Function to fetch a folder from the remote 2019-06-03 09:22:14 +02:00
Laszlo Fogas 67cdbd2509 Simplified the interface 2019-06-03 08:49:11 +02:00
Laszlo Fogas ca5817ffc2 Renamed package 2019-04-04 20:51:20 +02:00
Brad Rydzewski 08739aaed9 update bb client 2018-10-19 13:18:11 -07:00
Brad Rydzewski 3d6bd58be8 ensure stash responses closed 2018-10-19 13:03:46 -07:00
Mura Li 63fba676b1 Fix out-of-bounds error when a push doesn't contain commits 2018-06-11 16:47:25 +08:00
folex 0f737fd82c Fix fmt.ErrorF usage 2018-04-30 11:50:49 +03:00
folex b1dfa4a5a9 Fix PR comments
full_name   -> fullName
"%s"        -> %q
errors.New  -> fmt.Errorf
2018-04-28 10:25:30 +03:00
folex 0b73e5489b Add tests:
- read access
- write access
- admin access
2018-04-27 20:48:54 +03:00
folex 764c36f736 Use user/permissions bitbucket API instead of hooks 2018-04-27 19:01:15 +03:00
Vincent Lequertier 23f215df0e Remove labels deserialization for gogs and gitea PRs
This fixes #2154
2018-04-10 11:24:05 +02:00
Brad Rydzewski 641afd9273
Merge pull request #2350 from filoozom/fix-gitea-sync [ci skip]
Fix gitea `actionSync`
2018-04-01 11:51:34 -07:00
Brad Rydzewski 897eb95bcd
Merge pull request #2369 from JonasFranzDEV/master
Add context to Gitea status
2018-03-30 09:32:09 -07:00
Thomas Boerger 7f49e69607
Just fixed format with go fmt ./... 2018-03-21 14:02:17 +01:00
Jonas Franz 6a32935011
Add context to gitea status
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2018-03-10 20:11:34 +01:00
Philippe Schommers 487f6c9501 Fix gitea actionSync 2018-02-20 18:53:03 +01:00
Brad Rydzewski 580fe9abb7 add apache license header to files 2018-02-19 14:24:10 -08:00
Brad Rydzewski 9a76ab5bbb
Merge pull request #2315 from favadi/gitea-pull-sender
uses email from Sender field of push event
2018-02-19 12:25:34 -08:00