ci: revised the contributor workflow#2227
Conversation
|
So are we to merge #2226 or this PR - what would be better? |
|
I've tested this:
I really appreciate your effort. But for now I prefer my fix, because it works 😉 I've already put much more time in this, as I wanted 😄 If you want to fix & test this PR, it's also fine for me 👍 |
Looking at the workflow log,
That's even more bizarre 🤔 Looking at the workflow log, it is the It appears to check the remote branch (that now no longer exists), to get the I'd need to contribute to that action at some point or find a replacement.
I understand, that's fair :) I'll see if I can find time for it, at least for now we have something working. |
I really hope so. We'll see in 30min 😄 |
|
Seems to work now:) @polarathene can we close this PR or is there more I overlooked?:) |
|
This is a potentially better approach if I can find time in October to resolve the issues with I'm not fond about our workflow using unmaintained actions (the branch management ones). |
|
I don't mean to offend you, but we already have a few stale PRs, and from what you said, this PR is not even WIP. I would like to see this closed until it is worked on again. We can then leave it as a draft (after all, drafts are WIP not stale) and make it ready for review when finished. We don't have to close it, just my POV. What do you think? |
Don't worry, I don't get offended easily 👍
I'm not sure how this would be classed as stale? It's a change for a single workflow that will rarely be touched in the meantime. These changes proposed remain relevant, either I replace the
Feel free to close it if you prefer that. I switched to draft as the PR itself is still relevant, I wouldn't create a new PR for it and the PR proposed here isn't exactly being rejected, draft status seemed valid and harmless. If I don't find time in October to work on this, I could see how a PR in limbo might be unpleasant to have lingering around?
I stand by my earlier response. I've made a time commitment to try resolve this before the end of October and this intent is conveyed with the switch to draft status as not being ready for review, but with intent to be ready in the near-future :) |
|
It's very much fine with me, leave it open :) I was just curious. |
|
I will tackle this for v13.0.0. This (very likely) or I will close the PR 😆 (see #3289) |
|
I am doubtful I'll ever get around to this with everything on my plate atm. This was more QoL improvement and for maintainers. I wouldn't worry about it. |
d313add to
b245312
Compare
|
Repeating commit message here:
I think this looks good and is ready to be merged. Not sure how much you'd like to look into the changes @polarathene, or whether @casperklein want's to have a look as well before merging this. Just tell me :) I'm now going to approving my own changes lol. |
So I took this over and revised a change. The new workflow is much cleaner and uses non-archived, non-stale, up-to-date workflows. An example PR (with an extra step to create a diff) can be found [here](georglauterbach#6). The corresponding runs are found [here](https://github.com/georglauterbach/docker-mailserver/actions/workflows/contr.yml). The new workflow uses only 3 other actions, and utilized out from the create-PR-action to set the linting check to true (which works quite nicely). The styling was adjusted to reflect our current standards for GH Actions YAML files. The permissions were adjusted accordingly too, and the job now only runs once a week (more than enough, we needn't waste resources).
b245312 to
c642469
Compare
I don't think I can view what the original PR I put together here was since you've rewritten history? It's difficult to find a diff of before/after. IIRC there was some issue prior, but you've presumably changed the workflow in some way and verified that it works? I can't provide a decent review right now, but trust that you've sorted out any concerns from before 👍 |
Sorry, I messed up because it was a first for me managing multiple upstreams with git. Hence I decided it was the cleanest solution to force-push this single commit.
I read the discussion and tested whether the workflow runs when a branch exists and when it does not exist. I cannot confidently (like 100%) tell whether |
|
I will monitor the next execution to see whether it runs fine:) |
Description
Related to earlier PR: #2224
action-delete-branchis archived (unmaintained).action-create-branchhas poor documentation and looks unmaintained.add-contributorsdoesn't seem to be related to the previous contributors project we were using, I'm not entirely fond of it's documentation but have not cared to seek out alternatives. The action forces updates to the remote, the local write option is for the CLI/dev mode only, unavailable to the action.create-pull-requestto replace the branch actions and delegate the PR responsibility to fromadd-contributors. It seems to be a far more reliable action to cover the functionality required for this workflow.git rev-parsestep to collect the expected commit SHA was assumingcontributors-updatewas a local branch, but that branch was only valid as a remote, thus it output an error. Changed to return the commit SHA from current checkout HEAD commit (@).Fair warning: I lack the time to create a throwaway repo to test these changes out.
Type of change
Checklist: