Task #2442
closedCreate a script to update mentionbot configs in pulp repos
100%
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.
Updated by mhrivnak over 7 years ago
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
Updated by daviddavis over 7 years ago
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
Updated by daviddavis over 7 years ago
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.
Updated by fdobrovo about 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to fdobrovo
Updated by fdobrovo about 7 years ago
- Status changed from ASSIGNED to POST
Added by fdobrovo about 7 years ago
Updated by fdobrovo about 7 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset devel|2a2e80199b8938dd1cd5f86b844910c84f955b5a.
Updated by bizhang almost 7 years ago
- Status changed from MODIFIED to CLOSED - COMPLETE
dd mention-bot script to update mentionbot configs in pulp repos
closes #2442 https://pulp.plan.io/issues/2442