Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: lighten PR validation and change release process #23

Merged
merged 4 commits into from
May 7, 2024

Conversation

remi-gelinas
Copy link
Collaborator

@remi-gelinas remi-gelinas commented May 6, 2024

So, with the initial transfer for #19 out of the way, this PR is intended to make some changes to contribution and the release process, some of them discussed in #20 with @purcell.

Laundry list of changes in this PR:

  • CODEOWNERS updated to the nix-community/nix-ts-mode team, and not just myself

  • PR title validation removed as a requirement. I do still like the conventional commit spec, and I'd prefer it to unreadable commit messages, but the NO-ISSUE cruft is a real concern. At the very least I'd like to eliminate the NO-ISSUE/issue number requirement but still require conventional spec type.

  • With PR title validation removed, automatic versioning doesn't make sense (and never really did with a repo of this size). Automatic versioning actions are replaced with simple release and changelog generation actions caused by version tagging events.

  • Enable Dependabot version updating for Github Actions, to keep them up to date

  • Deduplicate the lint/test actions to use on trunk after appropriate commits and repoint the status badge in the README to the correct repo

Open questions I have for discussion:

  1. How do we want to restrict release tagging? Currently, the action in this PR will generate a changelog and release off of any tag. Obviously anyone in the nix-ts-mode team in theory will have permissions to push whatever tags. Do we want to restrict releasing to tags matching a semantic version (i.e. v.XX.XX.XX) exactly, which would leave room for tags for other uses? Do we really even care given how low traffic this repo is right now?

    EDIT: It occurs to me that we could easily use protected tag patterns for this - protect semver tags for individuals with release permissions, and that should solve the problem rather nicely

  2. Looks like other projects in nix-community tend to use Renovate rather than Dependabot - I prefer renovate myself, but did dependabot initially as it's arguably less configuration. Any preference folks have?

@remi-gelinas remi-gelinas requested review from purcell and a team May 6, 2024 19:08
@remi-gelinas remi-gelinas self-assigned this May 6, 2024
@remi-gelinas
Copy link
Collaborator Author

cc @antifuchs and @purcell for comments here :D

purcell
purcell previously approved these changes May 7, 2024
Copy link
Member

@purcell purcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks good to me!

@remi-gelinas remi-gelinas merged commit 6919896 into trunk May 7, 2024
1 check failed
@remi-gelinas remi-gelinas deleted the remi-gelinas/update-after-repo-transfer branch May 7, 2024 11:32
Copy link
Contributor

@antifuchs antifuchs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Belated yep, this looks great! Thanks (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants