Read project identifier in asana service (#7)

This commit is contained in:
Manuel Bouza 2019-03-30 06:54:28 +01:00 committed by Tobias Miesel
parent a3f94738b6
commit 0f5172a820
2 changed files with 10 additions and 2 deletions

View File

@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Change the default value of subdomain to `unset` to have a well-formed URL. - Change the default value of subdomain to `unset` to have a well-formed URL.
## [1.0.23] - 2019-03-28 ## [1.1.0] - 2019-03-28
### Added ### Added
- Read project identifier from Asana project title
- Add support for meistertask.com - Add support for meistertask.com

View File

@ -17,7 +17,14 @@ export default {
document document
.querySelector(".ItemRow--focused textarea") .querySelector(".ItemRow--focused textarea")
?.textContent?.trim() || ?.textContent?.trim() ||
document.querySelector(".SingleTaskPane textarea")?.textContent?.trim() document.querySelector(".SingleTaskPane textarea")?.textContent?.trim(),
projectId: document => {
const match = document
.querySelector(".ProjectPageHeader-projectName")
?.textContent?.trim()
?.match(/^\[(\w+)\]/)
return match && match[1]
}
}, },
"github-pr": { "github-pr": {