-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
-
New Pending Place
Once a Pending Place is submitted via the API we should create an Issue in Gitea with the following label logic:
- Add
location-submissionlabel (label ID901) - Add
<origin>e.g.import|squarelabel (label ID1307)
- Add
-
Pending Place Revoked Before GT Issue Closed
If a Pending Place is revoked whilst an Issue is open ( (i.e. has not already been manually processed), it should be closed with with a revoked comment.
-
Pending Place Revoked After GT Issue Closed
If a Pending Place is revoked whilst an Issue is closed (i.e. has already been manually processed), the existing issue should be re-opened with the following label logic:
- Remove 'location-submission' label (label ID 901)
- Add 'location-removal' label (label ID
904)
Note:
In Gitea, Labels need to exist before use (unlike GH, which can create labels on the fly if they don't exist) and so we may want to hard-code Square for now and other Origins in the future given this will be a small and well-managed list requiring API on-boarding.
Area (country and community) specific labels can be addressed later.
This is how the Web App does it:
https://github.com/teambtcmap/btcmap.org/blob/main/src/lib/gitea.ts