restrict what batch connect form items (and apps) are prefillable #1079
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Issue Lifecycle | |
# Run this action when an issue is opened | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
# If the created issue does not have a milestone attached to it, assign the issue to the "Needs Triaged" milestone | |
assign-milestone: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Put in the backlog milestone if no milestone is defined. | |
if: github.event.issue.milestone == null | |
# Set environment | |
env: | |
MILESTONE_ID: 5 | |
run: | | |
curl --silent --output /dev/null --request PATCH \ | |
--url https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }} \ | |
--header 'authorization: token ${{ secrets.OSC_ROBOT_GH_PUB_REPO_TOKEN }}' \ | |
--header 'content-type: application/json' \ | |
--data '{ | |
"milestone": "'$MILESTONE_ID'" | |
}' |