-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ignore project if issue not present #4
Comments
One can add an issue to a project with the GitHub CLI: ui:
if: "${{ github.event.label.name == 'ui' }}"
runs-on: ubuntu-latest
steps:
- name: ui
env:
GH_DEBUG: api
GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ITEM_ADD }}
run: |
ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH")
echo $ISSUE_URL
gh project item-add 8 --owner JabRef --url $ISSUE_URL Therefore, it also would be OK for me that this action only moves issues if they are present in the project (and issues a warning output if the issue is not found in the given project). |
Hmm this conflicts with some of our own requirements unfortunately. Maybe we could add a flag that tells it to ignore issues that aren't already in the project? |
Sure. My proposal for a flag was following:
I am also fine with an additional |
Follow-up to #3
In our setting, we have two projects: "Good first issues" and "Candidates for University Projects". An issue can be in 0, 1, or 2 of these projects. In case a contributor is assigned, the "State" should change to "Assigned" in the projects to reflect the state "transparently" for the users.
I would like to move the issue only if it is already present in a board.
Proposal: If
ignored-columns
contains<<not-in-project>>
, then the issue is not added to the project.The text was updated successfully, but these errors were encountered: