Hello community, here is the log from the commit of package gh for openSUSE:Factory checked in at 2020-12-11 20:16:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gh (Old) and /work/SRC/openSUSE:Factory/.gh.new.2328 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gh" Fri Dec 11 20:16:32 2020 rev:2 rq:854654 version:1.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/gh/gh.changes 2020-12-08 13:25:40.930723309 +0100 +++ /work/SRC/openSUSE:Factory/.gh.new.2328/gh.changes 2020-12-11 20:16:33.868655882 +0100 @@ -1,0 +2,22 @@ +Thu Dec 10 09:26:16 UTC 2020 - Emily Roberts <nopeinomi...@posteo.net> + +- Fix app not showing the correct version +- Install readme and license files + +------------------------------------------------------------------- +Thu Dec 10 09:19:24 UTC 2020 - Martin Pluskal <mplus...@suse.com> + +- Build and install manpages as well + +------------------------------------------------------------------- +Wed Dec 9 17:44:56 UTC 2020 - Emily Roberts <nopeinomi...@posteo.net> + +- Use source specified at Source0 URL +- Switch from tar_scm to download_files for obtaining source archive + +------------------------------------------------------------------- +Tue Dec 8 22:58:18 UTC 2020 - Emily Roberts <nopeinomi...@posteo.net> + +- Simplify BuildRequires + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gh.spec ++++++ --- /var/tmp/diff_new_pack.r05AZs/_old 2020-12-11 20:16:34.604656187 +0100 +++ /var/tmp/diff_new_pack.r05AZs/_new 2020-12-11 20:16:34.604656187 +0100 @@ -23,30 +23,31 @@ License: MIT Group: Development/Tools/Version Control URL: https://cli.github.com/ -Source0: %{name}-%{version}.tar.gz +Source0: https://github.com/cli/cli/archive/v%{version}.tar.gz#/gh-%{version}.tar.gz Source1: vendor.tar.gz -%if 0%{?sle_version} <= 150200 -BuildRequires: (go >= 1.13 or go1.13) -%else -BuildRequires: go >= 1.13 -%endif +BuildRequires: golang(API) >= 1.13 Requires: git %description Official CLI client for GitHub written in Go %prep -%setup -q -%setup -q -T -D -a 1 +%setup -q -n cli-%{version} +%setup -q -T -D -n cli-%{version} -a 1 %build -go build -mod=vendor -buildmode=pie -o bin/gh ./cmd/gh +export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw -ldflags=-linkmode=external" +make GH_VERSION="v%{version}" bin/gh manpages %install - install -D -m 0755 bin/gh %{buildroot}%{_bindir}/gh +install -d %{buildroot}%{_mandir}/man1/ +cp share/man/man1/* %{buildroot}%{_mandir}/man1 %files +%doc README.md +%license LICENSE %{_bindir}/gh +%{_mandir}/man1/* %changelog ++++++ _service ++++++ --- /var/tmp/diff_new_pack.r05AZs/_old 2020-12-11 20:16:34.632656199 +0100 +++ /var/tmp/diff_new_pack.r05AZs/_new 2020-12-11 20:16:34.636656200 +0100 @@ -1,19 +1,5 @@ <services> - <service name="tar_scm" mode="disabled"> - <param name="versionformat">1.3.1</param> - <param name="url">https://github.com/cli/cli</param> - <param name="scm">git</param> - <param name="filename">gh</param> - <param name="changesgenerate">enable</param> - <param name="exclude">.*</param> - <param name="revision">refs/tags/v1.3.1</param> - </service> - <service name="recompress" mode="disabled"> - <param name="compression">gz</param> - <param name="file">*.tar</param> - </service> - <service name="set_version" mode="disabled"> - <param name="file">gh.spec</param> + <service name="download_files" mode="disabled"> </service> <service name="format_spec_file" mode="disabled"> <param name="specfile">gh.spec</param> ++++++ gh-1.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.gitattributes new/cli-1.3.1/.gitattributes --- old/gh-1.3.1/.gitattributes 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.gitattributes 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1 @@ +.github/actions/*/lib/* linguist-generated diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/CODE-OF-CONDUCT.md new/cli-1.3.1/.github/CODE-OF-CONDUCT.md --- old/gh-1.3.1/.github/CODE-OF-CONDUCT.md 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/CODE-OF-CONDUCT.md 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,76 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to make participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies within all project spaces, and it also applies when +an individual is representing the project or its community in public spaces. +Examples of representing a project or community include using an official +project e-mail address, posting via an official social media account, or acting +as an appointed representative at an online or offline event. Representation of +a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at opensou...@github.com. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/CONTRIBUTING.md new/cli-1.3.1/.github/CONTRIBUTING.md --- old/gh-1.3.1/.github/CONTRIBUTING.md 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/CONTRIBUTING.md 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,63 @@ +## Contributing + +Hi! Thanks for your interest in contributing to the GitHub CLI! + +We accept pull requests for bug fixes and features where we've discussed the approach in an issue and given the go-ahead for a community member to work on it. We'd also love to hear about ideas for new features as issues. + +Please do: + +* Check existing issues to verify that the [bug][bug issues] or [feature request][feature request issues] has not already been submitted. +* Open an issue if things aren't working as expected. +* Open an issue to propose a significant change. +* Open a pull request to fix a bug. +* Open a pull request to fix documentation about a command. +* Open a pull request for any issue labelled [`help wanted`][hw] or [`good first issue`][gfi]. + +Please avoid: + +* Opening pull requests for issues marked `needs-design`, `needs-investigation`, or `blocked`. +* Adding installation instructions specifically for your OS/package manager. +* Opening pull requests for any issue marked `core`. These issues require additional context from + the core CLI team at GitHub and any external pull requests will not be accepted. + +## Building the project + +Prerequisites: +- Go 1.13+ for building the binary +- Go 1.15+ for running the test suite + +Build with: `make` or `go build -o bin/gh ./cmd/gh` + +Run the new binary as: `./bin/gh` + +Run tests with: `make test` or `go test ./...` + +## Submitting a pull request + +1. Create a new branch: `git checkout -b my-branch-name` +1. Make your change, add tests, and ensure tests pass +1. Submit a pull request: `gh pr create --web` + +Contributions to this project are [released][legal] to the public under the [project's open source license][license]. + +Please note that this project adheres to a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms. + +We generate manual pages from source on every release. You do not need to submit pull requests for documentation specifically; manual pages for commands will automatically get updated after your pull requests gets accepted. + +## Resources + +- [How to Contribute to Open Source][] +- [Using Pull Requests][] +- [GitHub Help][] + + +[bug issues]: https://github.com/cli/cli/issues?q=is%3Aopen+is%3Aissue+label%3Abug +[feature request issues]: https://github.com/cli/cli/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement +[hw]: https://github.com/cli/cli/labels/help%20wanted +[gfi]: https://github.com/cli/cli/labels/good%20first%20issue +[legal]: https://docs.github.com/en/free-pro-team@latest/github/site-policy/github-terms-of-service#6-contributions-under-repository-license +[license]: ../LICENSE +[code-of-conduct]: ./CODE-OF-CONDUCT.md +[How to Contribute to Open Source]: https://opensource.guide/how-to-contribute/ +[Using Pull Requests]: https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/about-pull-requests +[GitHub Help]: https://docs.github.com/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/ISSUE_TEMPLATE/bug_report.md new/cli-1.3.1/.github/ISSUE_TEMPLATE/bug_report.md --- old/gh-1.3.1/.github/ISSUE_TEMPLATE/bug_report.md 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/ISSUE_TEMPLATE/bug_report.md 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,26 @@ +--- +name: "\U0001F41B Bug report" +about: Report a bug or unexpected behavior while using GitHub CLI +title: '' +labels: bug +assignees: '' + +--- + +### Describe the bug + +A clear and concise description of what the bug is. Include version by typing `gh --version`. + +### Steps to reproduce the behavior + +1. Type this '...' +2. View the output '....' +3. See error + +### Expected vs actual behavior + +A clear and concise description of what you expected to happen and what actually happened. + +### Logs + +Paste the activity from your command line. Redact if needed. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/ISSUE_TEMPLATE/feedback.md new/cli-1.3.1/.github/ISSUE_TEMPLATE/feedback.md --- old/gh-1.3.1/.github/ISSUE_TEMPLATE/feedback.md 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/ISSUE_TEMPLATE/feedback.md 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,28 @@ +--- +name: "\U0001F4E3 Feedback" +about: Give us general feedback about the GitHub CLI +title: '' +labels: feedback +assignees: '' + +--- + +# CLI Feedback + +You can use this template to give us structured feedback or just wipe it and leave us a note. Thank you! + +## What have you loved? + +_eg "the nice colors"_ + +## What was confusing or gave you pause? + +_eg "it did something unexpected"_ + +## Are there features you'd like to see added? + +_eg "gh cli needs mini-games"_ + +## Anything else? + +_eg "have a nice day"_ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/ISSUE_TEMPLATE/submit-a-request.md new/cli-1.3.1/.github/ISSUE_TEMPLATE/submit-a-request.md --- old/gh-1.3.1/.github/ISSUE_TEMPLATE/submit-a-request.md 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/ISSUE_TEMPLATE/submit-a-request.md 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,20 @@ +--- +name: "⭐ Submit a request" +about: Surface a feature or problem that you think should be solved +title: '' +labels: enhancement +assignees: '' + +--- + +### Describe the feature or problem you’d like to solve + +A clear and concise description of what the feature or problem is. + +### Proposed solution + +How will it benefit CLI and its users? + +### Additional context + +Add any other context like screenshots or mockups are helpful, if applicable. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/PULL_REQUEST_TEMPLATE/bug_fix.md new/cli-1.3.1/.github/PULL_REQUEST_TEMPLATE/bug_fix.md --- old/gh-1.3.1/.github/PULL_REQUEST_TEMPLATE/bug_fix.md 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/PULL_REQUEST_TEMPLATE/bug_fix.md 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,19 @@ +--- +name: "\U0001F41B Bug fix" +about: Fix a bug in GitHub CLI + +--- + +<!-- +Please make sure you read our contributing guidelines at +https://github.com/cli/cli/blob/trunk/.github/CONTRIBUTING.md +before opening a pull request. Thanks! +--> + +## Summary + +closes #[issue number] + +## Details + +- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/SECURITY.md new/cli-1.3.1/.github/SECURITY.md --- old/gh-1.3.1/.github/SECURITY.md 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/SECURITY.md 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,3 @@ +If you discover a security issue in this repository, please submit it through the [GitHub Security Bug Bounty](https://hackerone.com/github). + +Thanks for helping make GitHub safe for everyone. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/workflows/codeql.yml new/cli-1.3.1/.github/workflows/codeql.yml --- old/gh-1.3.1/.github/workflows/codeql.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/workflows/codeql.yml 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,22 @@ +name: Code Scanning + +on: + push: + schedule: + - cron: "0 0 * * 0" + +jobs: + CodeQL-Build: + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: go + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/workflows/go.yml new/cli-1.3.1/.github/workflows/go.yml --- old/gh-1.3.1/.github/workflows/go.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/workflows/go.yml 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,42 @@ +name: Tests +on: [push, pull_request] +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + + steps: + - name: Set up Go 1.15 + uses: actions/setup-go@v2 + with: + go-version: 1.15 + + - name: Check out code + uses: actions/checkout@v2 + + - name: Download dependencies + run: go mod download + + - name: Run tests + run: go test -race ./... + + - name: Build + run: go build -v ./cmd/gh + + build-minimum: + runs-on: ubuntu-latest + + steps: + - name: Set up Go 1.13 + uses: actions/setup-go@v2 + with: + go-version: 1.13 + + - name: Check out code + uses: actions/checkout@v2 + + - name: Build + run: go build -v ./cmd/gh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/workflows/lint.yml new/cli-1.3.1/.github/workflows/lint.yml --- old/gh-1.3.1/.github/workflows/lint.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/workflows/lint.yml 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,59 @@ +name: Lint +on: + push: + paths: + - "**.go" + - go.mod + - go.sum + pull_request: + paths: + - "**.go" + - go.mod + - go.sum + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Set up Go 1.15 + uses: actions/setup-go@v2 + with: + go-version: 1.15 + + - name: Check out code + uses: actions/checkout@v2 + + - name: Verify dependencies + run: | + go mod verify + go mod download + + LINT_VERSION=1.29.0 + curl -fsSL https://github.com/golangci/golangci-lint/releases/download/v${LINT_VERSION}/golangci-lint-${LINT_VERSION}-linux-amd64.tar.gz | \ + tar xz --strip-components 1 --wildcards \*/golangci-lint + mkdir -p bin && mv golangci-lint bin/ + + - name: Run checks + run: | + STATUS=0 + assert-nothing-changed() { + local diff + "$@" >/dev/null || return 1 + if ! diff="$(git diff -U1 --color --exit-code)"; then + printf '\e[31mError: running `\e[1m%s\e[22m` results in modifications that you must check into version control:\e[0m\n%s\n\n' "$*" "$diff" >&2 + git checkout -- . + STATUS=1 + fi + } + + assert-nothing-changed go fmt ./... + assert-nothing-changed go mod tidy + + while read -r file linter msg; do + IFS=: read -ra f <<<"$file" + printf '::error file=%s,line=%s,col=%s::%s\n' "${f[0]}" "${f[1]}" "${f[2]}" "[$linter] $msg" + STATUS=1 + done < <(bin/golangci-lint run --out-format tab) + + exit $STATUS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.github/workflows/releases.yml new/cli-1.3.1/.github/workflows/releases.yml --- old/gh-1.3.1/.github/workflows/releases.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.github/workflows/releases.yml 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,186 @@ +name: goreleaser + +on: + push: + tags: + - "v*" + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Go 1.15 + uses: actions/setup-go@v2 + with: + go-version: 1.15 + - name: Generate changelog + run: | + echo "GORELEASER_CURRENT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + git fetch --unshallow + script/changelog | tee CHANGELOG.md + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --release-notes=CHANGELOG.md + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Checkout documentation site + uses: actions/checkout@v2 + with: + repository: github/cli.github.com + path: site + fetch-depth: 0 + token: ${{secrets.SITE_GITHUB_TOKEN}} + - name: Update site man pages + env: + GIT_COMMITTER_NAME: cli automation + GIT_AUTHOR_NAME: cli automation + GIT_COMMITTER_EMAIL: nore...@github.com + GIT_AUTHOR_EMAIL: nore...@github.com + run: make site-bump + - name: Move project cards + continue-on-error: true + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + PENDING_COLUMN: 8189733 + DONE_COLUMN: 7110130 + run: | + api() { gh api -H 'accept: application/vnd.github.inertia-preview+json' "$@"; } + api-write() { [[ $GITHUB_REF == *-* ]] && echo "skipping: api $*" || api "$@"; } + cards=$(api --paginate projects/columns/$PENDING_COLUMN/cards | jq ".[].id") + for card in $cards; do + api-write --silent projects/columns/cards/$card/moves -f position=top -F column_id=$DONE_COLUMN + done + echo "moved ${#cards[@]} cards to the Done column" + + - name: Install packaging dependencies + run: sudo apt-get install -y createrepo rpm reprepro + - name: Set up GPG + run: | + gpg --import --no-tty --batch --yes < script/pubkey.asc + echo "${{secrets.GPG_KEY}}" | base64 -d | gpg --import --no-tty --batch --yes + echo "allow-preset-passphrase" > ~/.gnupg/gpg-agent.conf + gpg-connect-agent RELOADAGENT /bye + echo "${{secrets.GPG_PASSPHRASE}}" | /usr/lib/gnupg2/gpg-preset-passphrase --preset 867DAD5051270B843EF54F6186FA10E3A1D22DC5 + - name: Sign RPMs + run: | + cp script/rpmmacros ~/.rpmmacros + rpmsign --addsign dist/*.rpm + - name: Run createrepo + run: | + mkdir -p site/packages/rpm + cp dist/*.rpm site/packages/rpm/ + createrepo site/packages/rpm + pushd site/packages/rpm + gpg --yes --detach-sign --armor repodata/repomd.xml + popd + - name: Run reprepro + env: + RELEASES: "cosmic eoan disco groovy focal stable oldstable testing unstable buster bullseye stretch jessie bionic trusty precise xenial" + run: | + mkdir -p upload + for release in $RELEASES; do + for file in dist/*.deb; do + reprepro --confdir="+b/script" includedeb "$release" "$file" + done + done + cp -a dists/ pool/ upload/ + mkdir -p site/packages + cp -a upload/* site/packages/ + - name: Publish site + env: + GIT_COMMITTER_NAME: cli automation + GIT_AUTHOR_NAME: cli automation + GIT_COMMITTER_EMAIL: nore...@github.com + GIT_AUTHOR_EMAIL: nore...@github.com + working-directory: ./site + run: | + git add packages + git commit -m "Add rpm and deb packages for ${GITHUB_REF#refs/tags/}" + if [[ $GITHUB_REF == *-* ]]; then + git log --oneline @{upstream}.. + git diff --name-status @{upstream}.. + else + git push + fi + + msi: + needs: goreleaser + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Download gh.exe + id: download_exe + shell: bash + run: | + hub release download "${GITHUB_REF#refs/tags/}" -i '*windows_amd64*.zip' + printf "::set-output name=zip::%s\n" *.zip + unzip -o *.zip && rm -v *.zip + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Install go-msi + run: choco install -y "go-msi" + - name: Prepare PATH + shell: bash + run: | + echo "$WIX\\bin" >> $GITHUB_PATH + echo "C:\\Program Files\\go-msi" >> $GITHUB_PATH + - name: Build MSI + id: buildmsi + shell: bash + run: | + mkdir -p build + msi="$(basename "${{ steps.download_exe.outputs.zip }}" ".zip").msi" + printf "::set-output name=msi::%s\n" "$msi" + go-msi make --msi "$PWD/$msi" --out "$PWD/build" --version "${GITHUB_REF#refs/tags/}" + - name: Obtain signing cert + id: obtain_cert + env: + DESKTOP_CERT_TOKEN: ${{ secrets.DESKTOP_CERT_TOKEN }} + run: .\script\setup-windows-certificate.ps1 + - name: Sign MSI + env: + GITHUB_CERT_PASSWORD: ${{ secrets.GITHUB_CERT_PASSWORD }} + run: | + .\script\sign.ps1 -Certificate "${{ steps.obtain_cert.outputs.cert-file }}" ` + -Executable "${{ steps.buildmsi.outputs.msi }}" + - name: Upload MSI + shell: bash + run: hub release edit "${GITHUB_REF#refs/tags/}" -m "" --draft=false -a "${{ steps.buildmsi.outputs.msi }}" + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Bump homebrew-core formula + uses: mislav/bump-homebrew-formula-action@v1 + if: "!contains(github.ref, '-')" # skip prereleases + with: + formula-name: gh + env: + COMMITTER_TOKEN: ${{ secrets.UPLOAD_GITHUB_TOKEN }} + - name: Checkout scoop bucket + uses: actions/checkout@v2 + with: + repository: cli/scoop-gh + path: scoop-gh + fetch-depth: 0 + token: ${{secrets.UPLOAD_GITHUB_TOKEN}} + - name: Bump scoop bucket + shell: bash + run: | + hub release download "${GITHUB_REF#refs/tags/}" -i '*_checksums.txt' + script/scoop-gen "${GITHUB_REF#refs/tags/}" ./scoop-gh/gh.json < *_checksums.txt + git -C ./scoop-gh commit -m "gh ${GITHUB_REF#refs/tags/}" gh.json + if [[ $GITHUB_REF == *-* ]]; then + git -C ./scoop-gh show -m + else + git -C ./scoop-gh push + fi + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GIT_COMMITTER_NAME: cli automation + GIT_AUTHOR_NAME: cli automation + GIT_COMMITTER_EMAIL: nore...@github.com + GIT_AUTHOR_EMAIL: nore...@github.com diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.gitignore new/cli-1.3.1/.gitignore --- old/gh-1.3.1/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.gitignore 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,22 @@ +/bin +/share/man/man1 +/gh-cli +.envrc +/dist +/site +.github/**/node_modules +/CHANGELOG.md + +# VS Code +.vscode + +# IntelliJ +.idea + +# macOS +.DS_Store + +# vim +*.swp + +vendor/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.golangci.yml new/cli-1.3.1/.golangci.yml --- old/gh-1.3.1/.golangci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.golangci.yml 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,3 @@ +linters: + enable: + gofmt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.goreleaser.yml new/cli-1.3.1/.goreleaser.yml --- old/gh-1.3.1/.goreleaser.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.goreleaser.yml 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,66 @@ +project_name: gh + +release: + prerelease: auto + draft: true # we only publish after the Windows MSI gets uploaded + name_template: "GitHub CLI {{.Version}}" + +before: + hooks: + - go mod tidy + - make manpages + +builds: + - <<: &build_defaults + binary: bin/gh + main: ./cmd/gh + ldflags: + - -s -w -X github.com/cli/cli/internal/build.Version={{.Version}} -X github.com/cli/cli/internal/build.Date={{time "2006-01-02"}} + - -X main.updaterEnabled=cli/cli + id: macos + goos: [darwin] + goarch: [amd64] + + - <<: *build_defaults + id: linux + goos: [linux] + goarch: [386, amd64, arm64] + + - <<: *build_defaults + id: windows + goos: [windows] + goarch: [386, amd64] + +archives: + - id: nix + builds: [macos, linux] + <<: &archive_defaults + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" + wrap_in_directory: true + replacements: + darwin: macOS + format: tar.gz + files: + - LICENSE + - ./share/man/man1/gh*.1 + - id: windows + builds: [windows] + <<: *archive_defaults + wrap_in_directory: false + format: zip + files: + - LICENSE + +nfpms: + - license: MIT + maintainer: GitHub + homepage: https://github.com/cli/cli + bindir: /usr + dependencies: + - git + description: GitHub’s official command line tool. + formats: + - deb + - rpm + files: + "./share/man/man1/gh*.1": "/usr/share/man/man1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gh-1.3.1/.vscode/settings.json new/cli-1.3.1/.vscode/settings.json --- old/gh-1.3.1/.vscode/settings.json 1970-01-01 01:00:00.000000000 +0100 +++ new/cli-1.3.1/.vscode/settings.json 2020-12-03 18:56:21.000000000 +0100 @@ -0,0 +1,5 @@ +{ + "search.exclude": { + "vendor/**": true + } +} \ No newline at end of file ++++++ vendor.tar.gz ++++++ _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org