-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Added working workflows that has commenting on forked repo's PR. #481
Conversation
So @pan3793 pointed my attention to a possible event that we can use instead of our current approach. Personally, I find this approach is cleaner and quicker than our current one. I also wouldn't mind refactoring my code to this new event. However, here's a caveat that I think you should know: Here's the event link for more details. Pretty much, if we use this workflow event, we have to make sure the files added is safe before we run the script. I don't think this is too bad but maybe you @amacado might have a different opinion? |
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 this solution, but if you like to rework it feel free ;-) I'm pretty busy right now so I'm unable to test it in depth but from what I can see it should work. Although my heart is bleeding a little for those chained actions. It just not feeling right to have a separated workflow whichs only purpose is to comment the results of another workflow. And this has to be done even twice for each workflow.. Anyway: As long as it works and Github does not provide a more elegant way of solving this I'm glad you found a workaround :)
No problem, sorry for mentioning you too often 😅. I'm also starting school again too so I wanted to get this done before I get swarmed. Since there aren't any PR coming in (probably since people are getting back to work), I think I can take some time and upgrade it to the With Otherwise, we can just keep it as it is. There's no rush cause we can't really use the workflow until we merge it into |
@Thomas-Boi in my opinion this solution seems more secure than exposing the tokens (even if it's only the IMGUR secret). It should not be considered best practice to open the project for possible fraud. :) So feel free to merge it. We can also merge to master and get a new release pretty soon. |
This PR is to address this discussion and issue #478.
To develop this, I cloned the repo and opened a PR from this repo into my fork. This is to ensure that the code properly works with PR from forked repo.
Here's the working PR. The working results are near the end. Things take up quite a bit of time because of small Actions error like syntaxes and stuff. However, I'm pretty satisfied with the result.
To test:
devicon.json
.testing_files
that I put in this repo. It should be8ce746
for the valid one (you might need to edit thedevicon.json
file and removetestingicon1
andtestingicon2
) and948acf3
for the invalid SVG.