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

how to add to project without workflow #661

Open
quantuminformation opened this issue Jan 14, 2025 · 1 comment
Open

how to add to project without workflow #661

quantuminformation opened this issue Jan 14, 2025 · 1 comment

Comments

@quantuminformation
Copy link

You prefer not to use workflows,

but using this:

name: Auto apply triage label and default project

on:
  issues:
    types:
      - opened
      - reopened

jobs:
  label_and_assign_project:
    runs-on: ubuntu-latest
    permissions:
      issues: write
      repository-projects: write  

    steps:
      - name: Add "triage" label if no milestone
        if: ${{ github.event.issue.milestone == null }}
        run: |
          gh issue edit ${{ github.event.issue.number }} \
            --repo quantumjs/launch-track \
            --add-label triage
        env:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}



      - name: Add issue to org-level project
        run: gh project item-add quantumjs/1 --content-id "${{ github.event.issue.node_id }}"
        env:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

gives error:

Image
@keikoro
Copy link

keikoro commented Feb 20, 2025

@quantuminformation If your question isn't related to the workflow, it's off topic in this repo but even so, the error output includes a pointer to what went wrong, so I'm not sure I understand what you're asking.

As more of a general note: a copy/paste of the text of a log is always preferable to screenshots. You don't want to make others work extra by having to type things out for you when you're asking for help.

Also, those error logs GitHub provides aren't kept around forever. If you share the full log for debugging purposes, you'll have a copy available to yourself should you need to go back to it later.

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

2 participants