BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0d389682
Commit
0d389682
authored
Sep 26, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rc/backport-ce-to-ee-changes' into 'master'
Backport some changes from EE See merge request gitlab-org/gitlab-ce!14304
parents
3b2d68d3
a4168719
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
12 deletions
+34
-12
issuable_collections.rb
app/controllers/concerns/issuable_collections.rb
+1
-1
issuable_finder.rb
app/finders/issuable_finder.rb
+22
-0
index.md
doc/user/project/repository/gpg_signed_commits/index.md
+11
-11
No files found.
app/controllers/concerns/issuable_collections.rb
View file @
0d389682
...
...
@@ -106,7 +106,7 @@ module IssuableCollections
# @filter_params[:authorized_only] = true
end
@filter_params
@filter_params
.
permit
(
IssuableFinder
::
VALID_PARAMS
)
end
def
set_default_state
...
...
app/finders/issuable_finder.rb
View file @
0d389682
...
...
@@ -25,6 +25,28 @@ class IssuableFinder
NONE
=
'0'
.
freeze
SCALAR_PARAMS
=
%i[
assignee_id
assignee_username
author_id
author_username
authorized_only
due_date
group_id
iids
label_name
milestone_title
non_archived
project_id
scope
search
sort
state
]
.
freeze
ARRAY_PARAMS
=
{
label_name:
[],
iids:
[],
assignee_username:
[]
}.
freeze
VALID_PARAMS
=
(
SCALAR_PARAMS
+
[
ARRAY_PARAMS
]).
freeze
attr_accessor
:current_user
,
:params
def
initialize
(
current_user
,
params
=
{})
...
...
doc/user/project/repository/gpg_signed_commits/index.md
View file @
0d389682
...
...
@@ -113,25 +113,25 @@ started:
1. Use the following command to list the private GPG key you just created:
```
gpg --list-secret-keys --keyid-format
0x
LONG mr@robot.sh
gpg --list-secret-keys --keyid-format LONG mr@robot.sh
```
Replace `mr@robot.sh` with the email address you entered above.
1. Copy the GPG key ID that starts with `sec`. In the following example, that's
`
0x
30F2B65B9246B6CA`:
`30F2B65B9246B6CA`:
```
sec rsa4096/
0x
30F2B65B9246B6CA 2017-08-18 [SC]
sec rsa4096/30F2B65B9246B6CA 2017-08-18 [SC]
D5E4F29F3275DC0CDA8FFC8730F2B65B9246B6CA
uid [ultimate] Mr. Robot <mr@robot.sh>
ssb rsa4096/
0x
B7ABC0813E4028C0 2017-08-18 [E]
ssb rsa4096/B7ABC0813E4028C0 2017-08-18 [E]
```
1. Export the public key of that ID (replace your key ID from the previous step):
```
gpg --armor --export
0x
30F2B65B9246B6CA
gpg --armor --export 30F2B65B9246B6CA
```
1. Finally, copy the public key and [add it in your profile settings](#adding-a-gpg-key-to-your-account)
...
...
@@ -167,28 +167,28 @@ key to use.
1. Use the following command to list the private GPG key you just created:
```
gpg --list-secret-keys --keyid-format
0x
LONG mr@robot.sh
gpg --list-secret-keys --keyid-format LONG mr@robot.sh
```
Replace `mr@robot.sh` with the email address you entered above.
1. Copy the GPG key ID that starts with `sec`. In the following example, that's
`
0x
30F2B65B9246B6CA`:
`30F2B65B9246B6CA`:
```
sec rsa4096/
0x
30F2B65B9246B6CA 2017-08-18 [SC]
sec rsa4096/30F2B65B9246B6CA 2017-08-18 [SC]
D5E4F29F3275DC0CDA8FFC8730F2B65B9246B6CA
uid [ultimate] Mr. Robot <mr@robot.sh>
ssb rsa4096/
0x
B7ABC0813E4028C0 2017-08-18 [E]
ssb rsa4096/B7ABC0813E4028C0 2017-08-18 [E]
```
1. Tell Git to use that key to sign the commits:
```
git config --global user.signingkey
0x
30F2B65B9246B6CA
git config --global user.signingkey 30F2B65B9246B6CA
```
Replace `
0x
30F2B65B9246B6CA` with your GPG key ID.
Replace `30F2B65B9246B6CA` with your GPG key ID.
## Signing commits
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment