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

Support for just the project_number #71

Open
woodie opened this issue Apr 30, 2021 · 1 comment
Open

Support for just the project_number #71

woodie opened this issue Apr 30, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@woodie
Copy link

woodie commented Apr 30, 2021

We should have $GITHUB_SERVER_URL and $GITHUB_REPOSITORY in the environment. Any chance we can make this more portable by accepting a project number?

jobs:
  add-new-issues:
    runs-on: ubuntu-latest
    steps:
      - uses: srggrs/[email protected]
        with:
          project_number: 1
@woodie
Copy link
Author

woodie commented May 4, 2021

Actually, this works just fine as well.

name: Add new issues to project board

on:
  issues:
    types: [opened]

env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
  add-new-issues:
    runs-on: ubuntu-latest
    steps:
      - uses: srggrs/[email protected]
        with:
          project: 'https://github.com/${{ github.repository }}/projects/1'

@srggrs srggrs added the documentation Improvements or additions to documentation label Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants