36 Commits

Author SHA1 Message Date
Ivan Kuchin 84750fa9e1 fix gitlab commit message expectation and add it for github integration 2026-05-21 17:07:34 +02:00
Oliver Günther 6b97c178a8 Allow setting a github user and webhook secret for github requests 2026-03-26 13:32:42 +01:00
Christophe Bliard 57f27bb33b [64136] Add missing translation for Host in GitHub integration 2025-05-21 10:19:45 +02:00
Bruno Pagno c2886046cd update comment permission names 2025-04-24 13:12:32 +02:00
Jonas Jabari fe065f40ad mark clipboard based specs as pending 2025-01-25 16:33:56 +01:00
Jonas Jabari bf095e8132 mark github/gitlab clipboard specs as pending 2025-01-24 18:42:45 +01:00
Jonas Jabari 9703a5c19c fixed github module specs 2025-01-22 16:28:06 +01:00
Oliver Günther f791d33b72 Replace specs 2025-01-14 10:20:35 +01:00
Henriette Darge 58a7130bdf Test some functionality of the tabs of the primerized split screen as it should behave the same way, the old tabs behave 2024-08-16 13:37:03 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard 8fa8584538 Run rubocop --autocorrect on all files
Only the safe cops have run. rubocop version is 1.59.0.
2024-01-05 15:27:09 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
ulferts 5b2bc41f41 Merge remote-tracking branch 'origin/dev' into easier-factory-role-setup 2023-10-12 12:09:27 +02:00
ulferts 2b2abf864a introduce ProjectRole model 2023-10-09 14:34:20 +02:00
Klaus Zanders a256fd85ac Fix a bunch of more usages of member_in_project that was overlooked 2023-10-09 10:40:45 +02:00
Aaron Contreras 50711b72c4 Derive the message used for macros from the Pull Request state
In order to properly select the message to be used, a small helper
function can help by deriving which tranlsation to use.

Updated the relevant feature spec to ensure the right tranlsation is
selected and the comment displayed in the Work Package activity matches
the expectation.
2023-08-10 13:13:14 -05:00
Aaron Contreras 20c49e8fe9 Fix Author wrongfully stated as Actor in non-edge-case actions
Following in line with the issue with Work Package references in
Pull Requests, all non-edge-case actions had the same situation of
defaulting to assuming the Author of the Pull Request is the one
performing the action.

Corrected by following the same wording pattern as reference messages.
2023-08-03 15:47:11 -05:00
Aaron Contreras 924b0118f9 Fix Author wrongfully stated as the user referencing a work package
Reworded the comment's description in order to fix the incorrectness
of itself and since it really isn't important information to know who
the user referencing the work package is (and because we don't keep track
of the provided `sender` in the webhook payload), we can do without it.
2023-08-03 15:04:04 -05:00
Aaron Contreras 8988b6d698 Fix Author being displayed as merging user incorrectly in Activity
We now derive which should be the Github User attached to the Work Package
Activity Comment depending on what type of state the pull request was
in when the journal is saved.

- If the state was merged, use the `merged_by` user.
- Otherwise, use the author.
2023-08-03 14:18:44 -05:00
Christophe Bliard 4c2a9d0aa8 Enable RSpec zero monkey patching mode
The plan for RSpec 4.0 is to disable monkey patching.

See https://github.com/rspec/rspec-core/blob/main/features/configuration/zero_monkey_patching_mode.feature for details.
2023-05-31 19:22:29 +02:00
Christophe Bliard aa23106c11 lint: autocorrect RSpec/FactoryBot/ConsistentParenthesesStyle
command is

    rubocop -A --only RSpec/FactoryBot/ConsistentParenthesesStyle modules spec
2023-03-07 15:04:32 +01:00
Oliver Günther 20e9280d19 Add counter to github tab (#11938) 2023-01-18 09:06:42 +00:00
Christophe Bliard 85b3258a29 Autocorrect with some rubocop cops
RSpec/Rails/InferredSpecType and Style/RedundantConstantBase

rubocop --autocorrect-all --only RSpec/Rails/InferredSpecType,Style/RedundantConstantBase spec modules/*/spec
2023-01-13 14:28:59 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Christophe Bliard d17d31eca7 Fix argument alignment since f08bea3467 for modules specs
The FactoryBot.* prefix has been removed in f08bea3. Since then rubocop complains about Layout/ArgumentAlignment. This commit fixes it.
2022-02-03 10:18:24 +01:00
Oliver Günther f08bea3467 Remove FactoryBot.* prefix where applicable 2022-01-25 08:19:06 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
Wieland Lindenthal e72d940b5b Feature/37108 improve design of GitHub tab (#9329)
* Rename Git button to 'Git snippets'

* Change font for Github tab header

* Improve design of pr status badges

* Reorganize the design of PR headers

* Improve design of PR checks

* Improve design of git snippets menu

* Remove WP description from commit message and command

* Fix frontend specs for github integration

* Adding dots to the end of phrases.

* Github Integration: reduce dom depth. remove last border under PR

* Add target blank to PR details link & other fixes

* Fix work_package_github_tab_spec.rb

* Remove fdescribe

* Improve layout of Github pull requests tab header

* Add title to Github check icon

* Refactor classnames for github pull requests

This introduces `op-pull-request` and `op-pr-check` as BEM blocks, both in their own sass files, but the files still scoped to the pull request component.

* Fix frontend spec. Added karma Chrome debug config.

* Fix frontend specs after refactoring styles

Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
2021-06-01 10:29:05 +02:00
Philipp Tessenow 2f9d252456 Show github pull requests in the GitHub tab (#9148)
* WIP: prototype wiring up the API with the angular frontend

* little refactorings in namespace and loading logic

* frontend styling and polishing

* pairing with aleix

* Avoid empty pullRequest.githubUser to be displayed

* added feature specs, a workaround for a pr-reload-bug in angular, and some readme improvements

* Title for partial PRs added

* GitActionsMenuComponent tests

* Test improvements

* GitHubTabComponent tests

* TabHeaderComponent tests

* TabPrsComponent tests

* revert change to karma runner

* start styling

* i18n in component

* avoid container element

* git actions menu tests

* Github interfaces

* PullRequestComponent tests

* Comment removed

* Typings improvements

* Merge fixes

* Tests fixes

* fix: wp list id links working with tabs

* remove partial github pr state

A PR might still be incomplete but enough data can be pulled from a github issuee notification to fill in most of the information

* avoid duplicate spec

* Fix import paths of op-icon

Co-authored-by: Aleix Suau <info@macrofonoestudio.es>
Co-authored-by: ulferts <jens.ulferts@googlemail.com>
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-05-06 16:40:37 +02:00
Philipp Tessenow fd19962429 Fixing a flaky specs in the github integration feature specs (#9151)
Sorry for introducing it, it was a false assumption about how work
package subjects are generated in the factory.
Turns out it is more stable and a better test to specify the subject we
test in the test setup itself anyways.
2021-04-12 13:45:35 +02:00
Philipp Tessenow a46de71009 [#36204] Add new GitHub plugin tab enabling users to copy git actions (#9027)
* Let GitHub integration show changes in a separate tab

* added new github integration icons to icon font
* add tab content:  working tab-header and copy-menu

* modernise github_integrations ruby code

* refactored some code to be more modern ruby (if wrote most of it 7
  years ago and couldn't look at some parts without squinting too much)
* make some intended-to-be-private module methods actually private
* fixed all rubocop errors in the /modules/github_integration
* re-organized tests a little
* gave our rubocop.yml some RSpec-related defaults -- happy to discuss
  these, but I think we can live with these as a good starting point

👆 all without actually (intentionally) changing the behaviour

* removed dead angular template code

* codeclimate found more things than rubocop :)

* removed create-pr-button since we decided against implementing that feature

* added missing translations

* properly cache the github related part of the wp api

* lower case pull requests in translations

* fix specs
2021-04-07 09:34:56 +02:00