Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Default account #4

Open
samuaz opened this issue May 16, 2023 · 4 comments
Open

Default account #4

samuaz opened this issue May 16, 2023 · 4 comments

Comments

@samuaz
Copy link

samuaz commented May 16, 2023

Hi guys,

want to ask if it is possible to have an account as default and then only switch to the one on rules when it matches the pattern?

example
all github.com/ -> use default account
github.com/myorganization -> use org account

@samuaz samuaz changed the title Default account on prefixes Default account May 16, 2023
@yuezk
Copy link
Owner

yuezk commented May 18, 2023

@samuaz You could try to add a rule for your default account. The rule below could match all URLs that don't belong to your org. I just tested it with my org.

^(?!.*(?:xxxxx-|_xxxxx)).*$: replace xxxxx with your org.

@yuezk
Copy link
Owner

yuezk commented May 18, 2023

@samuaz You could try to add a rule for your default account. The rule below could match all URLs that don't belong to your org. I just tested it with my org.

^(?!.*(?:xxxxx-|_xxxxx)).*$: replace xxxxx with your org.

Sorry, the workaround might have some side effects, and is not recommended to use it for now.

@samuaz
Copy link
Author

samuaz commented May 20, 2023

@yuezk
thanks for you replay
i was trying to do something like that, but i cant get it working.

my idea is to have something like when the url pattern dont match my organization automatically switch to my default (personal) account

@globart
Copy link

globart commented Jan 4, 2024

@yuezk maybe you could implement something like rule priority? So first excplicit rules for organization-account pairs will be evaluated and if none of them matches, the default account is used

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants