opendevstack / opendevstack/ods-core
Error adding ALLOWED_CHANGE_REF_TYPES as env variable
Open
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 53
- Forks
- 34
- Avg merge
- 3h 26m
- Merged PRs (30d)
- 1
Description
When:
- Create Env Variable for Change Ref type that includes Branch and Tag
Expected result:
- Webhook instance catches Tag pushed to the repo as a trigger event
Actual result:
- Webhook instance does not load the env Variable and always say it is empty
Analysis:
The if clause is not checking the variable that retrieves en env information, is checking the empty array that will contain it after spliting (done inside the if)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at jenkins/webhook-proxy/main.go around line 207 and trace how ALLOWED_CHANGE_REF_TYPES is read and split. Reproduce the configuration with both branch and tag values, then verify that a pushed tag triggers the webhook and that the environment variable is no longer reported as empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100