Skip to content
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

🐛 bug([context]): Bump from alpha to beta #566

Open
antoinenedelecdecathlon opened this issue Sep 11, 2024 · 3 comments
Open

🐛 bug([context]): Bump from alpha to beta #566

antoinenedelecdecathlon opened this issue Sep 11, 2024 · 3 comments
Assignees

Comments

@antoinenedelecdecathlon

Describe the bug

  Error: Error thrown while processing config: HttpError: No commit found for the ref refs/pull/3494/merge
  Error: undefined did not complete due to error:[object Promise]

To Reproduce

Our .github/workflow/label.yaml:

on:
    pull_request:
        types: [ opened, reopened, edited, synchronize, converted_to_draft ]
        branches:
          - '**'        # matches every branch
          - '!master'   # excludes master

name: 'Labeler'
jobs:
    label:
        runs-on: xxx
        steps:
            -   uses: actions/checkout@v4
            -   uses: Resnovas/[email protected]
                with:
                    GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

Expected behaviour

Once we started to pass from 1.0.0-alpha.7 on the 1.0.0-beta.X branches, this error occurs:

  Error: Error thrown while processing config: HttpError: No commit found for the ref refs/pull/3494/merge
  Error: undefined did not complete due to error:[object Promise]
@ResnovasLtd ResnovasLtd added the Type - Bug A possible bug label Sep 11, 2024
@TGTGamer TGTGamer changed the title bug([context]): Bump from alpha to beta 🐛 bug([context]): Bump from alpha to beta Sep 18, 2024
@ResnovasLtd ResnovasLtd removed the Type - Bug A possible bug label Sep 18, 2024
@TGTGamer
Copy link
Member

@antoinenedelecdecathlon sorry I missed this until now, could you send me the link to your repository so I can review the run and see what's happening?

@TGTGamer TGTGamer self-assigned this Sep 18, 2024
@antoinenedelecdecathlon
Copy link
Author

This is a private company repository, so I cannot give access to it, but here is the github action error log:

Run Resnovas/[email protected]
  with:
    GITHUB_TOKEN: ***
    config: .github/config.json
    fillEmpty: true
    skipDelete: false
    dryRun: false
Setup Phase
  Error: Error thrown while processing config: HttpError: No commit found for the ref 
  Error: undefined did not complete due to error:HttpError: No commit found for the ref 
  HttpError: No commit found for the ref 
      at /home/runner/actions-runner/_work/_actions/Resnovas/smartcloud/1.0.0-beta.8/webpack:/@resnovas/smartcloud/node_modules/@octokit/request/dist-node/index.js:86:1
      at processTicksAndRejections (node:internal/process/task_queues:95:5)
      at Utils.get (/home/runner/actions-runner/_work/_actions/Resnovas/smartcloud/1.0.0-beta.8/webpack:/@resnovas/smartcloud/lib/utils/api/files.js:51:1)
      at Action.processConfig (/home/runner/actions-runner/_work/_actions/Resnovas/smartcloud/1.0.0-beta.8/dist/index.js:[2](https://github.com/dktunited/cocreation-api/actions/runs/10875877038/job/30175001064#step:3:2)17:49)
      at Action.run (/home/runner/actions-runner/_work/_actions/Resnovas/smartcloud/1.0.0-beta.8/dist/index.js:11[3](https://github.com/dktunited/cocreation-api/actions/runs/10875877038/job/30175001064#step:3:3):25)

@antoinenedelecdecathlon
Copy link
Author

Here is the same github action working while in alpha:

Run Resnovas/[email protected]
  with:
    GITHUB_TOKEN: ***
    config: .github/config.json
    fillEmpty: true
    skipDelete: false
    dryRun: false
Setup Phase
  (node:[4](https://github.com/dktunited/cocreation-api/actions/runs/10943030161/job/30381446274#step:3:4)618) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
  (Use `node --trace-deprecation ...` to show where the warning was created)
label Actions
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants