Skip to content

Commit

Permalink
fix: update external-contributor triaging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tommartensen committed May 6, 2024
1 parent 2403fb2 commit 42016d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/add-new-issues-to-oss-triaging.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/add-new-pr-to-oss-triaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:

env:
EXTERNAL_PR_LABEL: external-contributor
PROJECT_URL: https://github.com/orgs/stackrox/projects/2 # OSS Triaging board

jobs:
check-pr-if-external:
Expand All @@ -24,21 +23,7 @@ jobs:
run: |
set -uo pipefail
if [[ $BASE_REPO != $HEAD_REPO ]]; then
echo "::set-output name=is_external_pr::true"
gh pr edit \
${{ github.event.pull_request.number }} \
--add-label ${EXTERNAL_PR_LABEL}
else
echo "::set-output name=is_external_pr::false"
fi
add-to-project:
name: Add pull request to project
runs-on: ubuntu-latest
needs: [check-pr-if-external]
if: needs.check-pr-if-external.outputs.is_external_pr == 'true'
steps:
- uses: actions/add-to-project@v0.3.0
with:
project-url: ${{ env.PROJECT_URL }}
github-token: ${{ secrets.ADD_TO_PROJECT_TOKEN }}

0 comments on commit 42016d7

Please sign in to comment.