-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple exempt-pr-label where labels have spaces #98
Comments
I have also been having issues with our labels, which have spaces. A better example would be great! |
Any word on this? |
Also came here looking to see how to handle Labels with white space and special characters. We typically have Labels that are descriptive and easy to read. Examples: Priority: Medium |
Hmm... I was unable to reproduce this issue using the unit tests provided. I'm not sure if this is isolated for PR labels or not. But for reference, there's the unit test that covers this case: Lines 496 to 516 in e976731
I modified the test case to add a label called
So either this issue has been fixed, or the unit tests are presenting a false positive. |
I managed to make this work by just using the ASCII code for a space. stale-issue-label: 'Status%3A%20Abandoned' Translated my label which is 'Status: Abadonded' |
The specific failing case is multiple labels with spaces, a test with this label set would be more accurate.
|
I tried that as well. The tests still passed.
@stephenbawks may be onto something, though. It's possible that the labels are being passed along to the github action in their URL-encoded form. |
Yes, that has potential, however, it fails the ease of use category. 😆 This also begs the question, why would one label with spaces be ok, while two labels with spaces not be ok? My original setup only, which I have reverted to using, has |
I stand corrected, it is now failing with a single label. Adding the encoding, as a stop gap. |
Exempt issue names apparently need to be specified with URL encoding (see actions/stale#98).
Exempt issue names apparently need to be specified with URL encoding (see actions/stale#98).
I added |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Commented to avoid stale ;) |
I was on vacation when my reminder went off for this. 😆 |
@hross you assigned this one to you but I wish to help on this one. |
at first I thought that the parseCommaSeparatedString method was causing the issue so I move it to a dedicated file to test it since it was private also because I think that this repo could have more clean code and code splitting anyway this was not the root of the actions#98 issue :/
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Any update? |
* chore(git): ignore .idea folder to avoid adding WebStorm files * test(jest): find all spec files as well * refactor(labels): create a dedicated function to parse the labels at first I thought that the parseCommaSeparatedString method was causing the issue so I move it to a dedicated file to test it since it was private also because I think that this repo could have more clean code and code splitting anyway this was not the root of the #98 issue :/ * fix(label): allow to use spaces inside the labels * docs(isLabeled): add JSDoc * chore(npm): add lint:fix script
@brianeclow might want to check if anything is alright. |
Nope, still broken... And now, with more fun.
It marked the PR as |
You need to upgrade to v3.0.14. |
So, using |
hmm... When it was first released, v3 was not updated to the new version. That seems to have changed and it's now pointing at the same commit as v3.0.14. Disregard. |
I am re-running the test with the above listed workflow. |
This is still running against PR's. Looks like the fix was for only issues. Can this be re-opened? |
However, it is looking like, the timing is off. It now is ignoring difference between:
And it is closing the PR at 2 days instead of 1. |
This is still a problem. |
However, a bug prevents this from working on PRs, see actions/stale#98. Signed-off-by: Chris PeBenito <[email protected]>
However, a bug prevents this from working on PRs, see actions/stale#98. Signed-off-by: Chris PeBenito <[email protected]>
However, a bug prevents this from working on PRs, see actions/stale#98. Signed-off-by: Chris PeBenito <[email protected]>
However, a bug prevents this from working on PRs, see actions/stale#98. Signed-off-by: Chris PeBenito <[email protected]>
However, a bug prevents this from working on PRs, see actions/stale#98. Signed-off-by: Chris PeBenito <[email protected]>
However, a bug prevents this from working on PRs, see actions/stale#98. Signed-off-by: Chris PeBenito <[email protected]> Signed-off-by: Jason Zaman <[email protected]>
Has this issue actually been fixed? If yes, what is the correct way to specify two (or more) labels containing spaces for the |
I would like to have two labels to exclude this action. From the examples I could find, a comma separated quoted string appears to be the correct way. However, most of our labels have spaces, unlike the examples. The following represents our configuration, however, it still triggered the action and closed a PR with both labels.
The text was updated successfully, but these errors were encountered: