Feature: Issue submission validation
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
A US Government customer is requesting a feature to validate issue submissions based on specific criteria. They have an organizational requirement to meet specific compliance standards for record keeping -- at present, their approach is through the usage of labels. Having the ability to do this natively would avoid needing to use a compute-intensive CI/CD workaround (below).
Workaround
It's possible to use an Issues events webhook in conjunction with a pipeline trigger to kick off a CI job defined in .gitlab-ci.yml, which requests against the Projects API
This would require:
- Pipeline Trigger token
- Project Access Token
- Group Access Token (if checking projects within same group)
- Create pipeline trigger token on Project B
- Create project access token on Project A. Save token to CI/CD vars of Project B.
- Add webhook to Project A with pipeline trigger token (from #1 above)
- Create
.gitlab-ci.ymlfile that hits the/projects/:id/issues?labels=foo,barendpoint.
Relevant Info:
- US Federal ticket (Internal access to verified US Citizens only)
- SFDC (internal)
Edited by 🤖 GitLab Bot 🤖