Skip to content

Conversation

@richard-webb-dev
Copy link

@richard-webb-dev richard-webb-dev commented Dec 1, 2025

mainly addressing my own comments: #10 (review)

  • changes linting to be more lenient (ticket ref must be mentioned, ideally at the front, and no longer demands capital letter start)
  • removes dependency on external action
  • uses deno
  • unit tests our validate PR title logic
  • integration tests via act with mock payload
  • renames workflow to be more purpose oriented

i went a bit back and forth on whether to implement just via bash vs javascript, but doing unit tests on scripts in bash felt yucky

https://www.loom.com/share/38f47335440649b5ad54ca9a15ede04b

https://simpleclub.slack.com/archives/C0123GV10US/p1764342932709379?thread_ts=1764342600.513229&cid=C0123GV10US

note this comment:
I’m holding off making changes until I get feedback from GitHub support on why the setup doesn’t work … -> maybe we can't merge this until then... or maybe that's exactly why we should merge it... not sure!

…s and Jira references

- removes dependency on external action
- uses deno
- unit tests our validate PR title logic via Deno
- integration tests via act with mock payload
- renames workflow to be more purpose oriented
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

desc: "accepts revert with scope and ticket",
},
{
title: "feat(api): SC-1234-description-with-hyphens",
Copy link
Contributor

Choose a reason for hiding this comment

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

I disagree that this should pass!

The changelog should be readable not some identifier.

This is also why I'm in favor of putting the ticket at the end, if you read the changelog the least important information is the ticket.

Copy link
Author

Choose a reason for hiding this comment

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

we discussed briefly in backend check-in -> we don't care strongly about this -> i'll put it to the end

@richard-webb-dev
Copy link
Author

i'm mainly not sure on this functionality, if it will work with this PR too:
https://github.com/simpleclub/.github/pull/10/files#diff-66b9e9b332eae19c8319f151365b1f8f8620d2dd5ccaa1383a9035dadff566e2R34


const invalidCases = [
{
title: "feat: Add feature",
Copy link
Contributor

Choose a reason for hiding this comment

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

I also think we should allow no tickets.
There are simply changes where creating a ticket is not useful.
The most important example: Deploying a domain 👀 There we also don't want to have a ticket every time.

Though other changes like updating docs, READMEs, etc. would be too annoying to create an issue just to have an issue.

Copy link
Author

Choose a reason for hiding this comment

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

yes fair point -> i'll make it warn, but otherwise succeed

@IchordeDionysos
Copy link
Contributor

In general, I'd hold of from making such a dramatic change to the workflow right now because the entire premise of this running like this is in question due to limitations of GitHub.

@richard-webb-dev
Copy link
Author

moving @IchordeDionysos comments here:

Dennis Kugelmann
Monday at 13:25
We used an action for a standardised convention widely used by people to not re-invent the wheel. (edited)
I do understand the potential security concern, which can be mitigated by pinning the action to a commit hash (edited)

for some basic linting of one sentence, I struggle to see the justification of any package for it, for something that would be used across all of our repos - it reminds me of this: https://en.wikipedia.org/wiki/Npm_left-pad_incident

Sure, we could mitigate it by pinning.. but it's even less risk if we don't have any package!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants