Comments (27)
@gobadiah I just bumped my head on this... ensure you have both the following files
.github/workflows/labeler.yml // with the action
.github/labeler.yml //with your labels
from labeler.
The issue here is that the error message is not clear enough. The problem is the .github/labeler.yml
is missing, so just add it inside the .github
directory and you will be fine.
from labeler.
Posting for awareness : This error message can also be seen if you have labeler.yaml
instead of labeler.yml
.
from labeler.
Doh. I had created .github/labeler.yaml
[WRONG] instead of .github/labeler.yml
[Correct].
Suggestion:
- Support .yaml as a valid extension
- and/or make it explicit that no file was found at
.github/labeler.yml
from labeler.
##[error]HttpError: Resource not accessible by integration
Thats actually #12.
from labeler.
When I add the Create CODE_OF_CONDUCT.md then merge it. I'm getting this error also. Can anyone help
Error: HttpError: Not Found Error: Not Found
I have seen this error when this action fails to find a file it requires, for me it was the config file (labeler.yaml) at the wrong location. I would make sure that you did not accidentaly moved / deleted / renamed that or any other file this action relies on.
from labeler.
I too experience the same error, and I have created this preconfigured github action from the Github UI .
Run actions/labeler@v4
with:
repo-token: ***
configuration-path: .github/labeler.yml
sync-labels: false
##[debug]fetching changed files for pr #2
##[debug]found changed files:
##[debug] README.md
Error: HttpError: Not Found
Error: Not Found
from labeler.
I too experience the same error, and I have created this preconfigured github action from the Github UI .
Run actions/labeler@v4 with: repo-token: *** configuration-path: .github/labeler.yml sync-labels: false ##[debug]fetching changed files for pr #2 ##[debug]found changed files: ##[debug] README.md Error: HttpError: Not Found Error: Not Found
please make sure that the file .github/labeler.yml
exists
from labeler.
Below, I'm running a
cat
using the workspace environment variable. And the file exits:
As far as I see it the action fetches the config directly from the github API through the client.rest.repos.getContent(...) function, I think the location should not use the '${GITHUB_WORKSPACE}'.
to validate that the not found error is related to the config file you could try to use my fork branch, which returns another error message in case that this specific file is not found.
from labeler.
Hello everyone!
We improved error handling and released a new action version (v4.3.0).
I am closing the issue. Please let us know if you have any questions.
Thank you for your patience!
from labeler.
totally lost. Could anyone give me a hint? thanks
from labeler.
I have hit this same issue when testing out the workflow 🤔 I don't know how public this is but here is the PR that is failing: mansona/actions-intro#1
it is an empty repo that is just set up to test the action
from labeler.
Running into this as well. I've tried every combination of refs I can think of:
uses: actions/labeler@v2
- 404uses: actions/labeler@releases/v2
- 404uses: actions/labeler@master
- Doesn't have alib
folder
from labeler.
any news on this issue ?
from labeler.
Thanks @rohan-buchner I already have the two files (I renamed the workflow from label.yaml
to labeler.yaml
just in case). The content of the workflow is copied from the README.md
, the content of the other file is just :
api: api/*
It was on a private repo, so I also tried doing this on a public repo, I get the same error.
from labeler.
I am facing the same issue
##[error]HttpError: Resource not accessible by integration
##[error]Resource not accessible by integration
##[error]Node run failed with exit code 1
from labeler.
Same issue here, but I'm facing some diffs of PR's from local repo or fork repos:
- fork repo: label gets NOT added and error is thrown
- local repo: there are two label actions executed, on the first run the error is thrown, second run is green and the label is added
from labeler.
I'm experiencing the same issue: https://github.com/GMNGeoffrey/iree/pull/10/checks?check_run_id=381938064
Could someone from the team please respond??
2020-01-09T18:07:48.5514225Z ##[section]Starting: Request a runner to run this job
2020-01-09T18:07:48.7204774Z Requesting a hosted runner in current repository's account/organization with labels: 'ubuntu-18.04', require runner match: True
2020-01-09T18:07:48.7854193Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job.
2020-01-09T18:07:48.8029606Z ##[section]Finishing: Request a runner to run this job
2020-01-09T18:07:55.4244546Z Current runner version: '2.163.1'
2020-01-09T18:07:55.4245499Z Prepare workflow directory
2020-01-09T18:07:55.4488152Z Prepare all required actions
2020-01-09T18:07:55.4510698Z Download action repository 'actions/labeler@v2'
2020-01-09T18:07:57.9922248Z ##[group]Run echo "$AUTHOR"
2020-01-09T18:07:57.9922628Z �[36;1mecho "$AUTHOR"�[0m
2020-01-09T18:07:57.9964363Z shell: /bin/bash -e {0}
2020-01-09T18:07:57.9964628Z env:
2020-01-09T18:07:57.9964746Z AUTHOR: GMNGeoffrey
2020-01-09T18:07:57.9964844Z ##[endgroup]
2020-01-09T18:07:58.0075385Z GMNGeoffrey
2020-01-09T18:07:58.0205498Z ##[group]Run actions/labeler@v2
2020-01-09T18:07:58.0205648Z with:
2020-01-09T18:07:58.0205823Z repo-token: ***
2020-01-09T18:07:58.0205927Z configuration-path: .github/labeler.yml
2020-01-09T18:07:58.0206032Z env:
2020-01-09T18:07:58.0206138Z AUTHOR: GMNGeoffrey
2020-01-09T18:07:58.0206241Z ##[endgroup]
2020-01-09T18:07:58.8602042Z ##[error]HttpError: Not Found
2020-01-09T18:07:58.8604796Z ##[error]Not Found
2020-01-09T18:07:58.8610911Z ##[error]Node run failed with exit code 1
2020-01-09T18:07:58.8616908Z Cleaning up orphan processes
from labeler.
Well I'm an idiot. I forgot to git add
the untracked .github/labeler.yml file before committing 🤦. I do think a more helpful error message here would be great
from labeler.
does someone has a fix. Also, not working for me. Same error
from labeler.
This issue should be renamed to :
more explicit error when `labeler.yml` is not found.
from labeler.
I have run into this error when copying workflows from one repo to another ( and forgetting the labeler.yml in the process).
It would be great if the error message for a the missing config file was a little more explicit.
from labeler.
When I add the Create CODE_OF_CONDUCT.md then merge it. I'm getting this error also. Can anyone help
Error: HttpError: Not Found
Error: Not Found
from labeler.
Below, I'm running a cat
using the workspace environment variable. And the file exits:
from labeler.
The last few messages and examples are indeed correct
Here is an short reproduction:
- run: printf 'bug:\n- *\n' > /tmp/labeler.yml
- uses: actions/labeler@v4
with:
configuration-path: /tmp/labeler.yml
And because in code we have this it indeed will never ever work because even so it accepts the file path, it expects it to be committed
async function fetchContent(
client: ClientType,
repoPath: string
): Promise<string> {
// add me to fix an issue
if (fs.existsSync(repoPath)) {
return Promise.resolve(fs.readFileSync(repoPath, 'utf8'));
}
const response: any = await client.rest.repos.getContent({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
path: repoPath,
ref: github.context.sha
});
return Buffer.from(response.data.content, response.data.encoding).toString();
}
And it seems that there is already an pull request with similar fix - #394 so hopefully it will be merged somewhere in the future but for now it seems that there is no workarounds except of running some github script action and doing things by hands
from labeler.
Running into this as well. I've tried every combination of refs I can think of:
uses: actions/labeler@v2
- 404uses: actions/labeler@releases/v2
- 404uses: actions/labeler@master
- Doesn't have alib
folder
from labeler.
The last few messages and examples are indeed correct
Here is an short reproduction:
- run: printf 'bug:\n- *\n' > /tmp/labeler.yml - uses: actions/labeler@v4 with: configuration-path: /tmp/labeler.ymlAnd because in code we have this it indeed will never ever work because even so it accepts the file path, it expects it to be committed
async function fetchContent( client: ClientType, repoPath: string ): Promise<string> { // add me to fix an issue if (fs.existsSync(repoPath)) { return Promise.resolve(fs.readFileSync(repoPath, 'utf8')); } const response: any = await client.rest.repos.getContent({ owner: github.context.repo.owner, repo: github.context.repo.repo, path: repoPath, ref: github.context.sha }); return Buffer.from(response.data.content, response.data.encoding).toString(); }And it seems that there is already an pull request with similar fix - #394 so hopefully it will be merged somewhere in the future but for now it seems that there is no workarounds except of running some github script action and doing things by hands
from labeler.
Related Issues (20)
- Getting `sync-labels` type error after update to 5 version. HOT 4
- Create dynamic labels from branch name HOT 1
- any-glob-all-files does not working intuitevely HOT 4
- Sync-labels should not remove an unspecified label HOT 2
- Error when configuration is invalid HOT 1
- Branch name checks ignored as top level key HOT 2
- example fails yaml validation HOT 7
- Char HOT 1
- Node 16 gets warning HOT 2
- Description seems dangerous HOT 5
- Labeler should never remove labels it has not configured HOT 5
- Add a label to the PR if the review has ended with a request to make changes HOT 1
- Could not find pull request warning for pull_request closed event HOT 2
- Is it possible to label based on number of lines changed? HOT 1
- Update documentation to note that you can use sentences in labels HOT 1
- Allow for only applying a label if another label has not been applied (enumerated labels) HOT 1
- Merging `main` into PR causes incorrect labeling HOT 2
- Apply label only if it's the only change to the document HOT 1
- Hoy por mi mañana por ti HOT 1
- Very slow when many files match filter 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 labeler.