You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/nixpkgs-vet.yml
+9-39Lines changed: 9 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -26,52 +26,22 @@ jobs:
26
26
# This should take 1 minute at most, but let's be generous. The default of 6 hours is definitely too long.
27
27
timeout-minutes: 10
28
28
steps:
29
-
# This step has to be in this file, because it's needed to determine which revision of the repository to fetch, and we can only use other files from the repository once it's fetched.
29
+
# This checks out the base branch because of pull_request_target
Copy file name to clipboardExpand all lines: ci/README.md
+55Lines changed: 55 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,58 @@ Why not just build the tooling right from the PRs Nixpkgs version?
41
41
- Because it improves security, since we don't have to build potentially untrusted code from PRs.
42
42
The tool only needs a very minimal Nix evaluation at runtime, which can work with [readonly-mode](https://nixos.org/manual/nix/stable/command-ref/opt-common.html#opt-readonly-mode) and [restrict-eval](https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-restrict-eval).
43
43
44
+
## `get-merge-commit.sh GITHUB_REPO PR_NUMBER`
45
+
46
+
Check whether a PR is mergeable and return the test merge commit as
47
+
[computed by GitHub](https://docs.github.com/en/rest/guides/using-the-rest-api-to-interact-with-your-git-database?apiVersion=2022-11-28#checking-mergeability-of-pull-requests).
48
+
49
+
Arguments:
50
+
-`GITHUB_REPO`: The repository of the PR, e.g. `NixOS/nixpkgs`
51
+
-`PR_NUMBER`: The PR number, e.g. `1234`
52
+
53
+
Exit codes:
54
+
- 0: The PR can be merged, the test merge commit hash is returned on stdout
55
+
- 1: The PR cannot be merged because it's not open anymore
56
+
- 2: The PR cannot be merged because it has a merge conflict
57
+
- 3: The merge commit isn't being computed, GitHub is likely having internal issues, unknown if the PR is mergeable
58
+
59
+
### Usage
60
+
61
+
This script can be used in GitHub Actions workflows as follows:
62
+
63
+
```yaml
64
+
on: pull_request_target
65
+
66
+
# We need a token to query the API, but it doesn't need any special permissions
67
+
permissions: {}
68
+
69
+
jobs:
70
+
build:
71
+
name: Build
72
+
runs-on: ubuntu-latest
73
+
steps:
74
+
# Important: Because of `pull_request_target`, this doesn't check out the PR,
75
+
# but rather the base branch of the PR, which is needed so we don't run untrusted code
76
+
- uses: actions/checkout@<VERSION>
77
+
with:
78
+
path: base
79
+
sparse-checkout: ci
80
+
- name: Resolving the merge commit
81
+
env:
82
+
GH_TOKEN: ${{ github.token }}
83
+
run: |
84
+
if mergedSha=$(base/ci/get-merge-commit.sh ${{ github.repository }} ${{ github.event.number }}); then
Copy file name to clipboardExpand all lines: nixos/modules/services/desktop-managers/lomiri.nix
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,14 @@ in {
16
16
libayatana-common
17
17
ubports-click
18
18
])++(withpkgs.lomiri;[
19
-
content-hub
20
19
hfd-service
21
20
history-service
22
21
libusermetrics
23
22
lomiri
24
23
lomiri-calculator-app
25
24
lomiri-camera-app
26
25
lomiri-clock-app
26
+
lomiri-content-hub
27
27
lomiri-docviewer-app
28
28
lomiri-download-manager
29
29
lomiri-filemanager-app
@@ -129,7 +129,7 @@ in {
129
129
130
130
environment.pathsToLink=[
131
131
# Configs for inter-app data exchange system
132
-
"/share/content-hub/peers"
132
+
"/share/lomiri-content-hub/peers"
133
133
# Configs for inter-app URL requests
134
134
"/share/lomiri-url-dispatcher/urls"
135
135
# Splash screens & other images for desktop apps launched via lomiri-app-launch
@@ -194,10 +194,6 @@ in {
194
194
};
195
195
196
196
users.groups.usermetrics={};
197
-
198
-
# TODO content-hub cannot pass files between applications without asking AA for permissions. And alot of the Lomiri stack is designed with AA availability in mind. This might be a requirement to be closer to upstream?
199
-
# But content-hub currently fails to pass files between applications even with AA enabled, and we can get away without AA in many places. Let's see how this develops before requiring this for good.
0 commit comments