Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhkag committed Oct 14, 2023
0 parents commit 1a0af9c
Show file tree
Hide file tree
Showing 33 changed files with 607 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig (is awesome): http://EditorConfig.org

# * top-most EditorConfig file
root = true

# default style settings
[*]
charset = utf-8
end_of_line = crlf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[[Mm]akefile{,.*}]
# TAB-style indentation
indent_style = tab
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Since Scoop is a Windows-only tool, we can safely use CRLF line endings for all text files.
# If Git decides that the content is text, its line endings will be normalized to CRLF in the working tree on checkout.
# In the Git index/repository the files will always be stored with LF line endings. This is fine.
* text=auto eol=crlf
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.github/workflows/ @ScoopInstaller/maintainers
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: "Bug Report"
about: "I am facing some problems."
title: ""
labels: "bug"
---

<!--
By opening this issue you confirm that you have searched for similar issues/PRs here already.
Failing to do so will most likely result in closing of this issue without any explanation.
Incomplete form details below might also result in closing of the issue.
-->

## Bug Report

**Package Name:** [name of package which has bug(s)]

### Current Behaviour

<!-- A clear and concise description of the behaviour. -->

### Expected Behaviour

<!-- A clear and concise description of what you expected to happen. -->

### Additional context/output

<!-- Add any other context about the problem here. If applicable, paste terminal output here to help explain. -->

### Possible Solution

<!--- Only if you have suggestions on a fix for the bug -->

### System details

**Windows version:** [e.g. 7, 8, 10]

**OS architecture:** [e.g. 32bit, 64bit]

**PowerShell version:** [output of `"$($PSVersionTable.PSVersion)"`]

**Additional software:** [(optional) e.g. ConEmu, Git]

#### Scoop Configuration
<!-- Can be found in ~/.config/scoop/config.json -->

```json
//# Your configuration here
```
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/Package_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: "Package Request"
about: "I have a suggestion for a package (and may want to implement it)!"
title: "[Request] "
labels: "package-request"
---

<!--
By opening this issue you confirm that you have searched for similar issues/PRs here already.
Failing to do so will most likely result in closing of this issue without any explanation.
Incomplete form details below might also result in closing of the issue.
-->

## Package Request

### Criteria

For a package to be acceptable in the zhkag bucket, it should be:

<!-- All items need to be checked. -->

- [ ] a reasonably well-known and widely used application
- [ ] the latest stable version of the program
- [ ] the full version i.e. not a trial version

### Information

**Name:** [name of new package]

**Description:** [clear and concise details of what it is]

**Homepage:** [a URL/link]

**Download link(s):** [URL(s)/link(s)]

**Some indication of popularity/repute:** [GitHub stars/software reviews etc.]

113 changes: 113 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: 🐛 Bug Report
description: Open an issue about a bug that needs fixing.
title: "[Bug]: "
labels: ["bug"]
body:
- type: checkboxes
attributes:
label: Prerequisites
options:
- label: I have written a descriptive issue title.
required: true
- label: I have searched all issues/PRs to ensure it has not already been reported or fixed.
required: true
- label: I have verified that I am using the latest version of Scoop and corresponding bucket.
required: true
- type: input
attributes:
label: Package Name
description: Name of package (install name) which has bug(s)
placeholder: e.g. 7zip (not '7-Zip')
validations:
required: true
- type: textarea
attributes:
label: Expected/Current Behaviour
description: A clear and concise description of what you expected to happen and what actually happen.
placeholder: I am experiencing a problem with X. I think Y should be happening but Z is actually happening.
validations:
required: true
- type: textarea
attributes:
label: Steps to Reproduce
description: List of steps, sample code or failing test that reproduces the behavior.
render: console
placeholder: |
PS> scoop install tests/meson
Installing 'meson' (0.61.1) [64bit]
Loading meson-0.61.1-64.msi from cache.
Checking hash of meson-0.61.1-64.msi ... ok.
Extracting meson-0.61.1-64.msi ... done.
Running installer script...
Linking D:\Scoop\apps\meson\current => D:\Scoop\apps\meson\0.61.1
Creating shim for 'meson'.
Can't shim 'meson.exe': File doesn't exist.
validations:
required: true
- type: textarea
attributes:
label: Possible Solution
description: Do you have some suggestions on a fix for the bug?
placeholder: I am experiencing a problem with X. I think Y should be happening but Z is actually happening.
validations:
required: true
- type: textarea
attributes:
label: Scoop and Buckets Version
description: Paste verbatim output from `scoop --version` below.
render: console
placeholder: |
PS> scoop --version
Current Scoop version:
8aee6f99 (HEAD -> master, tag: v0.3.0, origin/master) chore(release): Bump to version 0.3.0
'extras' bucket:
ea314b213 (HEAD -> master, origin/master, origin/HEAD) lazygit: Update to version 0.36.0
'main' bucket:
c6e688d4d (HEAD -> master, origin/master, origin/HEAD) x265: Update to version 3.5+68-40e37bc
validations:
required: true
- type: textarea
attributes:
label: Scoop Config
description: Paste verbatim output from `scoop config` below.
render: console
placeholder: |
PS> scoop config
last_update : 2022/11/14 22:05:50
scoop_repo : https://github.com/ScoopInstaller/Scoop
scoop_branch : master
use_lessmsi : True
aria2-enabled : True
aria2-warning-enabled : False
validations:
required: true
- type: textarea
attributes:
label: PowerShell Version
description: Paste verbatim output from `$PSVersionTable` below.
render: console
placeholder: |
PS> $PSVersionTable
Name Value
---- -----
PSVersion 7.3.0
PSEdition Core
GitCommitId 7.3.0
OS Microsoft Windows 10.0.25236
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
validations:
required: true
- type: textarea
attributes:
label: Additional Softwares
description: List any additional software that you are using and may be related to this bug.
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Scoop Community Support
url: https://github.com/ScoopInstaller/Scoop/discussions
about: Please ask Scoop related questions here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/hash-error.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 🔢 Hash Error
description: Open an issue about a package's hash is incorrect.
labels: ["bug"]
body:
- type: checkboxes
attributes:
label: Prerequisites
options:
- label: I have used the predefined issue title. (e.g. "xxx@xxx&#58; hash check failed")
required: true
- label: I have verified that I am using the latest version of Scoop and corresponding bucket.
required: true
- type: input
attributes:
label: Package Name and Version
description: Name and version of package (install name) which has incorrect hash.
placeholder: e.g. [email protected] (not '7-Zip')
validations:
required: true
58 changes: 58 additions & 0 deletions .github/ISSUE_TEMPLATE/package-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: 📦 Package Request
description: Open an issue about a missing package.
title: "[Request]: "
labels: ["package-request"]
body:
- type: checkboxes
attributes:
label: Prerequisites
options:
- label: I have searched all issues/PRs to ensure it has not already been reported or fixed.
required: true
- type: checkboxes
attributes:
label: Criteria
description: For a package to be acceptable in this bucket, it should be
options:
- label: Non-GUI tool
required: true
- label: Reasonably well-known and widely used (e.g. if it's a GitHub project, it should have at least 500 stars and/or 150 forks)
required: true
- label: English interface (or at least English documentation)
required: true
- label: Latest stable version
required: true
- label: Full version (i.e. not a trial version)
required: true
- label: Fairly standard install (e.g. uses a version-specific download URL, no elaborate pre/post install scripts)
required: true
- type: input
attributes:
label: Name
description: Name of the package
validations:
required: true
- type: input
attributes:
label: Description
description: Clear and concise details of what it is
validations:
required: true
- type: input
attributes:
label: Homepage
description: URI of the package's homepage
validations:
required: true
- type: input
attributes:
label: Download Link(s)
description: URI(s) of the package's download(s)
validations:
required: true
- type: textarea
attributes:
label: Some Indication of Popularity/Repute
description: GitHub stars/software reviews etc.
validations:
required: true
12 changes: 12 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

<!--
By opening this issue you confirm that you have searched for similar issues/PRs here already.
Failing to do so will most likely result in closing of this issue without any explanation.
-->

#### Scoop Configuration
<!-- Can be found in ~/.config/scoop/config.json -->

```json
//# Your configuration here
```
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Provide a general summary of your changes in the title above -->

<!--
By opening this PR you confirm that you have searched for similar issues/PRs here already.
Failing to do so will most likely result in closing of this PR without any explanation.
It is also mandatory to open a relevant issue (either Package Request or Bug Report) for
discussion with the maintainers, before creating any new PR.
Read the contributing guide first to save both your and our time.
-->

Closes #XXXX
<!-- or -->
Relates to #XXXX

- [ ] I have read the [Contributing Guide](https://github.com/ScoopInstaller/.github/blob/main/.github/CONTRIBUTING.md).
2 changes: 2 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use ScoopInstaller/.github/.github/stale.yml
_extends: .github
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tests

on:
pull_request:
push:
workflow_dispatch:

jobs:
test_powershell:
name: WindowsPowerShell
runs-on: windows-latest
steps:
- name: Checkout Bucket
uses: actions/checkout@main
with:
fetch-depth: 2
path: 'my_bucket'
- name: Checkout Scoop
uses: actions/checkout@main
with:
repository: ScoopInstaller/Scoop
path: 'scoop_core'
- name: Init and Test
shell: powershell
run: |
$env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
.\scoop_core\test\bin\init.ps1
.\my_bucket\bin\test.ps1
test_pwsh:
name: PowerShell
runs-on: windows-latest
steps:
- name: Checkout Bucket
uses: actions/checkout@main
with:
fetch-depth: 2
path: 'my_bucket'
- name: Checkout Scoop
uses: actions/checkout@main
with:
repository: ScoopInstaller/Scoop
path: 'scoop_core'
- name: Init and Test
shell: pwsh
run: |
$env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
.\scoop_core\test\bin\init.ps1
.\my_bucket\bin\test.ps1
Loading

0 comments on commit 1a0af9c

Please sign in to comment.