diff --git a/.github/workflows/open-pr-status.yml b/.github/workflows/open-pr-status.yml index f103038..a515beb 100644 --- a/.github/workflows/open-pr-status.yml +++ b/.github/workflows/open-pr-status.yml @@ -11,16 +11,18 @@ on: jobs: add-to-project: runs-on: ubuntu-latest + steps: - - name: Set Review Status - with: - state: 'review' - context: 'Initial Check' - description: 'Setting Status to Review...' - - uses: actions/add-to-project@RELEASE_VERSION - with: - project-url: https://github.com/orgs/fairpm/projects/15 -# github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} -# labeled: needs-review -# label-operator: AND - + - name: Set Review Status + uses: actions/github-script@v7 + + with: + script: | + github.repos.createCommitStatus( { + owner: context.repo.owner, + repo: context.repo.repo, + sha: context.sha, + state: 'pending', + context: 'Initial Check', + description: 'Setting Status to Review...' + } )