Skip to content

Commit b71a317

Browse files
authored
Scoop bucket (#1)
* initial commit for scoop bucket * dev-cloud manifest * fix test
1 parent 679da84 commit b71a317

30 files changed

+551
-1
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# EditorConfig (is awesome): http://EditorConfig.org
2+
3+
# * top-most EditorConfig file
4+
root = true
5+
6+
# default style settings
7+
[*]
8+
charset = utf-8
9+
end_of_line = crlf
10+
indent_size = 4
11+
indent_style = space
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
15+
[*.{yml,yaml}]
16+
indent_size = 2

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Since Scoop is a Windows-only tool, we can safely use CRLF line endings for all text files.
2+
# If Git decides that the content is text, its line endings will be normalized to CRLF in the working tree on checkout.
3+
# In the Git index/repository the files will always be stored with LF line endings. This is fine.
4+
* text=auto eol=crlf
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
name: 🐛 Bug Report
2+
description: Open an issue about a bug that needs fixing.
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: Prerequisites
9+
options:
10+
- label: I have written a descriptive issue title.
11+
required: true
12+
- label: I have searched all issues/PRs to ensure it has not already been reported or fixed.
13+
required: true
14+
- label: I have verified that I am using the latest version of Scoop and corresponding bucket.
15+
required: true
16+
- type: input
17+
attributes:
18+
label: Package Name
19+
description: Name of package (install name) which has bug(s)
20+
placeholder: e.g. 7zip (not '7-Zip')
21+
validations:
22+
required: true
23+
- type: textarea
24+
attributes:
25+
label: Expected/Current Behaviour
26+
description: A clear and concise description of what you expected to happen and what actually happen.
27+
placeholder: I am experiencing a problem with X. I think Y should be happening but Z is actually happening.
28+
validations:
29+
required: true
30+
- type: textarea
31+
attributes:
32+
label: Steps to Reproduce
33+
description: List of steps, sample code or failing test that reproduces the behavior.
34+
render: console
35+
placeholder: |
36+
PS> scoop install tests/meson
37+
Installing 'meson' (0.61.1) [64bit]
38+
Loading meson-0.61.1-64.msi from cache.
39+
Checking hash of meson-0.61.1-64.msi ... ok.
40+
Extracting meson-0.61.1-64.msi ... done.
41+
Running installer script...
42+
Linking D:\Scoop\apps\meson\current => D:\Scoop\apps\meson\0.61.1
43+
Creating shim for 'meson'.
44+
Can't shim 'meson.exe': File doesn't exist.
45+
validations:
46+
required: true
47+
- type: textarea
48+
attributes:
49+
label: Possible Solution
50+
description: Do you have some suggestions on a fix for the bug?
51+
placeholder: I am experiencing a problem with X. I think Y should be happening but Z is actually happening.
52+
validations:
53+
required: true
54+
- type: textarea
55+
attributes:
56+
label: Scoop and Buckets Version
57+
description: Paste verbatim output from `scoop --version` below.
58+
render: console
59+
placeholder: |
60+
PS> scoop --version
61+
Current Scoop version:
62+
c60df9cd (HEAD -> develop, origin/develop) docs(changelog): Prepare for version 0.3.1 (#5248)
63+
64+
'extras' bucket:
65+
ea314b213 (HEAD -> master, origin/master, origin/HEAD) lazygit: Update to version 0.36.0
66+
67+
'main' bucket:
68+
c6e688d4d (HEAD -> master, origin/master, origin/HEAD) x265: Update to version 3.5+68-40e37bc
69+
validations:
70+
required: true
71+
- type: textarea
72+
attributes:
73+
label: Scoop Config
74+
description: Paste verbatim output from `scoop config` below.
75+
render: console
76+
placeholder: |
77+
PS> scoop config
78+
79+
last_update : 2022/11/14 22:05:50
80+
scoop_repo : https://github.com/ScoopInstaller/Scoop
81+
scoop_branch : develop
82+
use_lessmsi : True
83+
aria2-enabled : True
84+
aria2-warning-enabled : False
85+
validations:
86+
required: true
87+
- type: textarea
88+
attributes:
89+
label: PowerShell Version
90+
description: Paste verbatim output from `$PSVersionTable` below.
91+
render: console
92+
placeholder: |
93+
PS> $PSVersionTable
94+
95+
Name Value
96+
---- -----
97+
PSVersion 7.3.0
98+
PSEdition Core
99+
GitCommitId 7.3.0
100+
OS Microsoft Windows 10.0.25236
101+
Platform Win32NT
102+
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
103+
PSRemotingProtocolVersion 2.3
104+
SerializationVersion 1.1.0.1
105+
WSManStackVersion 3.0
106+
validations:
107+
required: true
108+
- type: textarea
109+
attributes:
110+
label: Additional Softwares
111+
description: List any additional software that you are using and may be related to this bug.
112+
validations:
113+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Scoop Community Support
4+
url: https://github.com/ScoopInstaller/Scoop/discussions
5+
about: Please ask Scoop related questions here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 🔢 Hash Error
2+
description: Open an issue about a package's hash is incorrect.
3+
labels: ["bug"]
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Prerequisites
8+
options:
9+
- label: I have used the predefined issue title. (e.g. "xxx@xxx: hash check failed")
10+
required: true
11+
- label: I have verified that I am using the latest version of Scoop and corresponding bucket.
12+
required: true
13+
- type: input
14+
attributes:
15+
label: Package Name and Version
16+
description: Name and version of package (install name) which has incorrect hash.
17+
placeholder: e.g. [email protected] (not '7-Zip')
18+
validations:
19+
required: true
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: 📦 Package Request
2+
description: Open an issue about a missing package.
3+
title: "[Request]: "
4+
labels: ["package-request"]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: Prerequisites
9+
options:
10+
- label: I have searched all issues/PRs to ensure it has not already been reported or fixed.
11+
required: true
12+
- type: checkboxes
13+
attributes:
14+
label: Criteria
15+
description: For a package to be acceptable in this bucket, it should be
16+
options:
17+
- label: Criteria 1
18+
required: true
19+
- label: Criteria 2
20+
required: true
21+
- label: Criteria 3
22+
required: true
23+
- type: input
24+
attributes:
25+
label: Name
26+
description: Name of the package
27+
validations:
28+
required: true
29+
- type: input
30+
attributes:
31+
label: Description
32+
description: Clear and concise details of what it is
33+
validations:
34+
required: true
35+
- type: input
36+
attributes:
37+
label: Homepage
38+
description: URI of the package's homepage
39+
validations:
40+
required: true
41+
- type: input
42+
attributes:
43+
label: Download Link(s)
44+
description: URI(s) of the package's download(s)
45+
validations:
46+
required: true
47+
- type: textarea
48+
attributes:
49+
label: Some Indication of Popularity/Repute
50+
description: GitHub stars/software reviews etc.
51+
validations:
52+
required: true

.github/pull_request_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- Provide a general summary of your changes in the title above -->
2+
3+
<!--
4+
By opening this PR you confirm that you have searched for similar issues/PRs here already.
5+
Failing to do so will most likely result in closing of this PR without any explanation.
6+
It is also mandatory to open a relevant issue (either Package Request or Bug Report) for
7+
discussion with the maintainers, before creating any new PR.
8+
Read the contributing guide first to save both your and our time.
9+
-->
10+
11+
Closes #XXXX
12+
<!-- or -->
13+
Relates to #XXXX
14+
15+
- [ ] I have read the [Contributing Guide](https://github.com/ScoopInstaller/.github/blob/main/.github/CONTRIBUTING.md).

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'master'
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
test_powershell:
13+
name: WindowsPowerShell
14+
runs-on: windows-latest
15+
steps:
16+
- name: Checkout Bucket
17+
uses: actions/checkout@main
18+
with:
19+
fetch-depth: 2
20+
path: my_bucket
21+
- name: Checkout Scoop
22+
uses: actions/checkout@main
23+
with:
24+
repository: ScoopInstaller/Scoop
25+
path: scoop_core
26+
- name: Init Test Suite
27+
uses: potatoqualitee/[email protected]
28+
with:
29+
modules-to-cache: BuildHelpers
30+
shell: powershell
31+
- name: Test Bucket
32+
shell: powershell
33+
run: |
34+
$env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
35+
.\my_bucket\bin\test.ps1
36+
test_pwsh:
37+
name: PowerShell
38+
runs-on: windows-latest
39+
steps:
40+
- name: Checkout Bucket
41+
uses: actions/checkout@main
42+
with:
43+
fetch-depth: 2
44+
path: my_bucket
45+
- name: Checkout Scoop
46+
uses: actions/checkout@main
47+
with:
48+
repository: ScoopInstaller/Scoop
49+
path: scoop_core
50+
- name: Init Test Suite
51+
uses: potatoqualitee/[email protected]
52+
with:
53+
modules-to-cache: BuildHelpers
54+
shell: pwsh
55+
- name: Test Bucket
56+
shell: pwsh
57+
run: |
58+
$env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
59+
.\my_bucket\bin\test.ps1

.github/workflows/excavator.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on:
2+
workflow_dispatch:
3+
schedule:
4+
# run every 4 hours
5+
- cron: '20 */4 * * *'
6+
name: Excavator
7+
jobs:
8+
excavate:
9+
name: Excavate
10+
runs-on: windows-latest
11+
steps:
12+
- uses: actions/checkout@main
13+
- name: Excavate
14+
uses: ScoopInstaller/GithubActions@main
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
SKIP_UPDATED: 1
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
issue_comment:
3+
types: [created]
4+
name: Commented Pull Request
5+
jobs:
6+
pullRequestHandler:
7+
name: PullRequestHandler
8+
runs-on: windows-latest
9+
steps:
10+
- uses: actions/checkout@main
11+
- name: PullRequestHandler
12+
uses: ScoopInstaller/GithubActions@main
13+
if: startsWith(github.event.comment.body, '/verify')
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)