Comments (5)
Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.
from changed-files.
Hi @Aetherinox, you might need to clarify the details of what you are trying to do and also provide logs and I.e not just a cut of the error but what lead up to the error.
from changed-files.
Sorry, I was half asleep last night when I wrote this, my brain wasn't firing on all cylinders.
After I woke up today, I'm not sure if this is even solvable by this action script. In short:
- My action has two triggers,
issue_comment
andpull_request
- When I do a pull request, the bot scans the changed files and checks them for syntax issues, generates a report using scripts/v7, and then comments in the pull request.
- The bot then assigns a label to the pull request depending on how the scan went.
I was wanting to implement a /rescan
comment trigger, but what that would do is simply re-scan all the files again.
Well the problem with that, is that your script checks for changed / modified files. So if I simply do a /rescan
, then obviously nothing is going to be changed without another pull request, which is where I say I'm not even sure if this action is even part of the problem. With no files being changed, my array doesn't get populated, which causes it to simply throw an error that it cannot find the creation_date
of a file, because there aren't any files there to grab data for.
Then after I woke up today and did a double take, I realized that issue comments and pull requests have entirely different variables for grabbing data.
So it's something I'm going to have to investigate further, because what seemed like a relatively simple implementation, carries with it a web of differences.
from changed-files.
Hi @Aetherinox, actually issue_comment event is supported by this action you can find an full example here on how to setup your workflow.
These are example runs of the action for context on the list of files returned.
- PR comment: https://github.com/tj-actions/changed-files/actions/runs/8247880169/job/22556983266
- Issue comment (like this comment): https://github.com/tj-actions/changed-files/actions/runs/8247956283/job/22557227537
Let me know If that solves your issue or you’ll like further assistance.
from changed-files.
Ah, thank you for this. I'll have a look tomorrow.
Right now I wonder if I'm trying to throw way too much stuff into a single action, or if I should throw these into two actions. Once I look through these examples, I'll have a good idea.
Appreciate the examples.
from changed-files.
Related Issues (20)
- [Feature] allow forcing the action to use Github API, even if local .git directory is present HOT 11
- [BUG] `path` input does not work in combination with Github API approach HOT 4
- [BUG] `warnUnsupportedRESTAPIInputs` failing with composite action & `use_rest_api`
- [Feature] Enable `Diff` between Latest PR commit and the Previous one HOT 3
- [BUG] Error: Unable to locate the git repository in the given path HOT 4
- [BUG] any_modified/any_changed outputs are false for Pull Requests if no filters are set HOT 5
- [BUG] Inconsistent documentation about fetch_depth parameter HOT 2
- [Feature] Suppress warning message? HOT 1
- [BUG] Each file in a new line - Separator doesn't work HOT 2
- [Feature] add option to return forward slashes on windows instead of backslash HOT 4
- [Feature] add option to ignore submodules HOT 1
- [BUG] Changes since Last commit on the branch brings all files since the beggining of the branch HOT 5
- [Feature] Changed directory HOT 2
- [Feature] Get version of files before they were edited HOT 4
- [Feature] add previous tag regexp pattern HOT 3
- [Feature] Allow selecting characteristics about the directories we want to get changes from HOT 2
- [BUG] Cannot unmarshal matrix param HOT 2
- [BUG] Re-running a workflow triggered by a tag event causes the wrong previous tag to be selected HOT 3
- [BUG] fetch_missing_history_max_retries when github api HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from changed-files.