Skip to content

Pending Places status sync with Gitea #59

@dadofsambonzuki

Description

@dadofsambonzuki
  • 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-submission label (label ID 901)
    • Add <origin> e.g. import|square label (label ID 1307)
  • 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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions