-
Notifications
You must be signed in to change notification settings - Fork 1
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
Initial build of action #1
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start!
Just to make sure: you are planning on using something like https://github.com/marketplace/actions/action-github-app-token to generate the token in the workflow, right? I wonder whether it wouldn't make sense to fold that functionality into the Action, given that gitgitgadget
already contains code to do that.
Speaking of the Action, how about renaming it from check-status
to gitgitgadget-action
? That would help with forks (speaking from experience, people who fork git-for-windows/build-extra
hate that their fork's name does not have git-for-windows
in its name, as they are prone to forget what that particular repository is all about after a couple of years).
LICENSE
Outdated
@@ -0,0 +1,21 @@ | |||
MIT License | |||
|
|||
Copyright (c) 2019 Peter Evans |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peter Evans? 😁
Oh, and 2019. Wasn't that looong, looooong time ago, like a life time ago?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please point to a preferred licence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with MIT. Or with ISC. Just change the name and the year ;-)
package.json
Outdated
"eslint": "^8.23.1", | ||
"eslint-plugin-anti-trojan-source": "^1.1.0", | ||
"eslint-plugin-github": "^4.3.7", | ||
"gitgitgadget": "file:../gitgitgadget/gitgitgadget-1.0.0.tgz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about specifying it directly, i.e. as a link to the repository?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was avoiding checking in the package as part of gitgitgadget. Assumed there would be very little need for it. The instructions identify how to create it. It can be added to ggg if that is preferred. The package could also be published to npm, etc. if that is a preferred direction. Trying to limit the spread on something with limited use.
OTOH, did I misunderstand your suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that we could simply refer to the gitgitgadget/gitgitgadget
repository without changing anything in that repository, is that not the case? Would we have to commit transpiled code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://docs.npmjs.com/cli/v8/configuring-npm/package-json#git-urls-as-dependencies:
When installing from a git repository, the presence of certain fields in the package.json will cause npm to believe it needs to perform a build.
[...]
build
[...]
install
I therefore think that it should simply work, no changes in gitgitgadget/gitgitgadget
required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is needed to build the action are the gitgitgadget lib source files. The npm pack
makes them available with the deps info. Having npm run a build is not going to make those files available as far as I can tell (no, I did not run a test). The npm build feature seems like a way to make tools available that have not been published to a package manager.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The npm build feature seems like a way to make tools available that have not been published to a package manager.
Yes, and I think that is our use case. I should have a little bit of time to play with this next week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and I think that is our use case.
Well, sort of. From the doc it appears npm will do a build that we don't need. It then does the pack (or equivalent) and installs that. I was concerned it would try to use the build output but someone (okay, me) added files
to the package.json
and it all works. I will update the package.json
and README.md
to show this simpler process.
Thanks for catching this and I guess I should have run that test.
That looks interesting but doing it internally is probably better. Non-gitgitgadget projects may not have an app_id so they will also need to be supported. I will look into this some more. It may mean more optional parameters.
How about |
@dscho Thanks for the prompt review. This is one piece of many. |
Why |
I thought the actions were checking the status of the notes vs reality and the status of email tracking. It may be a simplistic view (it could easily have been update-status). The problem I have with |
Forgot I had done a similar implementation in the |
😁
That makes sense. |
8a2d0eb
to
11638db
Compare
Signed-off-by: Chris. Webster <chris@webstech.net>
11638db
to
1cd753a
Compare
Hey @webstech! After mulling over this for quite a few months, I think it would make most sense to fold this back into That would solve a lot of headache I had about maintaining several Actions and the ensuing dependency hell. What do you think? |
This action supports a number of commands and would be part of scheduled GitHub workflows to perform the commands. These actions are supporting gitgitgadget functions that allow email patch based repos to work with GitHub.
All input is welcome. The doc probably suffers from author familiarity issues. The README is generated from the actions.yml using a randomly selected tool. If there are known alternatives, let me know.