Task #2442
closed
Create a script to update mentionbot configs in pulp repos
Description
We occasionally have a need to update the mentionbot configs (like this one) in several pulp repositories simultaneously, such as when we want to add a new github username to the mentionbot blacklist.
It would be convenient to have a script in the devel repository to faciliate this.
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
- Sprint/Milestone set to 30
I think this will be a valuable tool. For the initial pass at this, I was thinking the script could:
1. Grab the .mention-bot config from the pulp repo
2. Look at the other repos'[0] configs for any differences and if there are differences...
3. Copy the mention bot config into the repository
4. Output any repos that changed.
The fourth step could actually git commit too? Not sure if that's trying to do too much though.
Thoughts?
[0] identified here https://git.io/v1VxE
We could also keep a dictionary of fields and how to handle them (e.g. merge/ignore/etc). So like userBlacklist
we could merge the list from pulp with any other repo's userBlacklist
. While other fields like fileBlacklist
for instance we might want to ignore (ie not copy over to other repos) because it's repo-specific.
- Status changed from NEW to ASSIGNED
- Assignee set to fdobrovo
- Status changed from ASSIGNED to POST
- Sprint/Milestone changed from 30 to 36
- Sprint/Milestone changed from 36 to 37
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Status changed from MODIFIED to CLOSED - COMPLETE
- Sprint/Milestone deleted (
37)
Also available in: Atom
PDF
dd mention-bot script to update mentionbot configs in pulp repos
closes #2442 https://pulp.plan.io/issues/2442