From d11558d8e1e9b759d0ad1b50f81c317c18483f00 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Tue, 1 Apr 2025 18:35:59 +0300 Subject: [PATCH 1/3] Add a GHA to create releases automatically when tagged --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4682677 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Create GitHub Release + +on: + push: + tags: + - "v*" # Trigger when a version tag is pushed (e.g., v1.0.0) + +jobs: + create-release: + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Create GitHub Release with Auto-Generated Notes + uses: ncipollo/release-action@v1 + with: + tag: ${{ github.ref_name }} + name: copilot.el ${{ github.ref_name }} + prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-alpha') || contains(github.ref, '-beta') }} + generateReleaseNotes: true # Auto-generate release notes based on PRs and commits + token: ${{ secrets.GITHUB_TOKEN }} From bf9f28420ffcceb008446b456850b5b202d91359 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Tue, 1 Apr 2025 18:36:29 +0300 Subject: [PATCH 2/3] Bump the version This allows us to differentiate between feature and bugfix releases. --- copilot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copilot.el b/copilot.el index ce6f910..2685dab 100644 --- a/copilot.el +++ b/copilot.el @@ -8,7 +8,7 @@ ;; Rakotomandimby Mihamina ;; URL: https://github.com/copilot-emacs/copilot.el ;; Package-Requires: ((emacs "27.2") (editorconfig "0.8.2") (jsonrpc "1.0.14") (f "0.20.0")) -;; Version: 0.0.1 +;; Version: 0.1.0 ;; Keywords: convenience copilot ;; The MIT License (MIT) From e506d6854d47ab3fd9003c925af271f43f18caaf Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Tue, 1 Apr 2025 18:37:37 +0300 Subject: [PATCH 3/3] Bump the copyright years --- LICENSE | 4 ++-- copilot-balancer.el | 2 +- copilot.el | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index d2985bb..7b6ac3e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2022-2024 copilot-emacs maintainers +Copyright (c) 2022-2025 copilot-emacs maintainers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/copilot-balancer.el b/copilot-balancer.el index 4241caf..c3f1b78 100644 --- a/copilot-balancer.el +++ b/copilot-balancer.el @@ -1,6 +1,6 @@ ;;; copilot-balancer.el --- Parentheses balancer for Lisps -*- lexical-binding:t -*- -;; Copyright (C) 2022-2024 copilot-emacs maintainers +;; Copyright (C) 2022-2025 copilot-emacs maintainers ;; The MIT License (MIT) diff --git a/copilot.el b/copilot.el index 2685dab..e18c4ed 100644 --- a/copilot.el +++ b/copilot.el @@ -1,6 +1,6 @@ ;;; copilot.el --- An unofficial Copilot plugin -*- lexical-binding: t; -*- -;; Copyright (C) 2022-2024 copilot-emacs maintainers +;; Copyright (C) 2022-2025 copilot-emacs maintainers ;; Author: zerol ;; Maintainer: Emil van der Westhuizen